[wp-hackers] Modifying the query object after pre_get_posts, but before rendering the page.

William Satterwhite whsatterwhite at gmail.com
Mon Apr 29 00:27:45 UTC 2013


What are the options for modifying and possibly replacing the the query
object after the pre_get_posts filter, but before sending final HTTP
headers and rendering the page? Would the wp or template_redirect hooks be
appropriate for this type of thing? I'd like to do some checking against
the query object and possibly replace it with a new WP_Query object for the
main query resulting in different post results.

Thanks,
-- 
Hunter Satterwhite
http://linkedin.com/in/hsatterwhite
(252) 762-5177


More information about the wp-hackers mailing list