[wp-trac] [WordPress Trac] #19515: Helper functions for accessing 'tax_query', 'query', 'meta_query' WP Query properties

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 12 19:36:52 UTC 2011


#19515: Helper functions for accessing 'tax_query', 'query', 'meta_query' WP Query
properties
-------------------------+-------------------------
 Reporter:  ejdanderson  |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Query        |     Version:  3.1
 Severity:  minor        |  Resolution:  worksforme
 Keywords:  needs-patch  |
-------------------------+-------------------------
Changes (by scribu):

 * status:  new => closed
 * type:  feature request => enhancement
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 The tax_query property is accessible from any WP_Query instance:

 {{{
 $my_query = new WP_Query( array(
   'tax_query' => array(
     ...
   )
 ) );

 var_dump( $my_query->tax_query );
 }}}

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


More information about the wp-trac mailing list