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

tech