Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#2934 closed enhancement (fixed)

pass parameters to get_categories filters

Reported by: ryanscheuermann Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: General Keywords: categories hooks
Focuses: Cc:


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.

Attachments (1)

2934.patch (1.9 KB) - added by ryanscheuermann 12 years ago.
pass params to filters in get_categories

Download all attachments as: .zip

Change History (3)

#1 @ryanscheuermann
12 years ago

  • Type changed from defect to enhancement

12 years ago

pass params to filters in get_categories

#2 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4013]) Pass arg array to get_categories filters. Props ryanscheuermann. fixes #2934

Note: See TracTickets for help on using tickets.