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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 25 18:08:24 UTC 2010


#13109: get_taxonomies should filter object_type
-------------------------+--------------------------------------------------
 Reporter:  michaelh     |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Post Types   |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by scribu):

 To further filter the taxonomy objects you could do something like this:

 `
 $taxonomies = get_object_taxonomies('post', 'objects');

 $taxonomies = wp_filter_object_list($taxonomies, array('_builtin' =>
 false));
 `

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


More information about the wp-trac mailing list