[wp-trac] [WordPress Trac] #14349: Filter to query_posts() args

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 19 20:54:16 UTC 2010


#14349: Filter to query_posts() args
-------------------------+--------------------------------------------------
 Reporter:  lucaswxp     |        Owner:            
     Type:  enhancement  |       Status:  closed    
 Priority:  normal       |    Milestone:            
Component:  Query        |      Version:  3.0       
 Severity:  normal       |   Resolution:  worksforme
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by scribu):

 Replying to [comment:7 filosofo]:
 > Replying to [comment:3 scribu]:
 > > Well, the earliest hook is 'parse_query', which might or might not be
 good enough.
 > >
 > > So a nice clean filter right at the beginning of
 WP_Query::parse_query() wouldn't hurt.
 >
 > What would that do for custom query variables that using a callback on
 `parse_query` doesn't?  In other words, I don't see anything here that
 can't easily be accomplished using existing hooks.

 It would be useful if you needed to alter the query variables before all
 the query flags were set. Currently, you would have to set them manually,
 or call parse_query() again somehow.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14349#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list