Is there an action or filter that gets called after an instance of WP_Query performs a query?

1 Answer
1

Yes there is, the_posts gets called just after the posts have been selected from the database and it passes an array of $posts as a first parameter and the $wp_query object as second parameter to your hooked function.

Leave a Reply

Your email address will not be published. Required fields are marked *