Is there an action or filter that gets called after an instance of WP_Query performs a query?
Leave a Reply
You must be logged in to post a comment.
Is there an action or filter that gets called after an instance of WP_Query performs a query?
You must be logged in to post a comment.
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.