[wp-trac] [WordPress Trac] #2934: pass parameters to get_categories filters

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 10 19:44:01 GMT 2006


#2934: pass parameters to get_categories filters
-----------------------------+----------------------------------------------
 Reporter:  ryanscheuermann  |       Owner:  anonymous       
     Type:  defect           |      Status:  new             
 Priority:  normal           |   Milestone:  2.1             
Component:  General          |     Version:  2.1             
 Severity:  normal           |    Keywords:  categories hooks
-----------------------------+----------------------------------------------
 In the get_categories function, the following filters could be passed the
 parameters array:

  * list_cats_exclusions
  * get_categories

 For instance:
 {{{
 $exclusions = apply_filters('list_cats_exclusions', $exclusions, $r );
 }}}

 This would greatly enhanced a plugin's ability to manage categories and
 even allow additional plugin-based parameters to be passed to
 get_categories, wp_list_categories, etc.

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


More information about the wp-trac mailing list