WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 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:

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

Download all attachments as: .zip

Change History (3)

comment:1 ryanscheuermann8 years ago

  • Type changed from defect to enhancement

ryanscheuermann8 years ago

pass params to filters in get_categories

comment:2 ryan8 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.