Is there an action or filter that gets called after an instance of WP_Query performs a query?
1 Answer
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.