Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#2934 closed enhancement (fixed)

pass parameters to get_categories filters

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

Description

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 20 years ago.
pass params to filters in get_categories

Download all attachments as: .zip

Change History (3)

#1 @ryanscheuermann
20 years ago

  • Type defectenhancement

@ryanscheuermann
20 years ago

pass params to filters in get_categories

#2 @ryan
20 years ago

  • Resolutionfixed
  • Status newclosed

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

Note: See TracTickets for help on using tickets.