[wp-trac] [WordPress Trac] #13109: get_taxonomies should filter object_type

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 25 13:11:05 UTC 2010


#13109: get_taxonomies should filter object_type
-------------------------+--------------------------------------------------
 Reporter:  michaelh     |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  Post Types   |     Version:  3.0       
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 get_taxonomies should filter on the object_type to allow retrieving all
 taxonomies for a particular post_type.  Example:

 {{{
 $args=array(
   'object_type' => array('book','movie')
 );
 $output = 'objects';
 $taxonomies=get_taxonomies($args,$output);
 }}}


 Note: get_object_taxonomies('book'); does return the taxonomy names
 related to an object_type / post_type

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13109>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list