Is there an action or filter that gets called after an instance of WP_Query performs a query?
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.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
6 months ago