Is there an action/filter called when WP_Query->query is finished and assigns posts

The is the the_posts filter, which sounds like what you want.

function filter_the_posts($posts) {
  var_dump($posts);
}
add_filter('the_posts','filter_the_posts');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)