[wp-trac] Re: [WordPress Trac] #7427: get_categories does not allow exernal taxonomy types

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 12 02:32:27 GMT 2008


#7427: get_categories does not allow exernal taxonomy types
-------------------------+--------------------------------------------------
 Reporter:  Malaiac      |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  high         |    Milestone:  2.7      
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:  categories   |  
-------------------------+--------------------------------------------------
Comment (by Malaiac):

 Actually , a filter would work :

 {{{
 $taxonomy = 'category';
         if ( 'link' == $args['type'] )
                 $taxonomy = 'link_category';
         $categories = get_terms($taxonomy, $args);
 +++     $categories = apply_filter('get_categories',$categories,$args);
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7427#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list