Ticket #2934 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

pass parameters to get_categories filters

Reported by: ryanscheuermann Assigned to: anonymous
Priority: normal Milestone: 2.1
Component: General Version: 2.1
Severity: normal Keywords: categories hooks
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

2934.patch (1.9 kB) - added by ryanscheuermann on 07/10/06 19:45:49.
pass params to filters in get_categories

Change History

07/10/06 19:44:28 changed by ryanscheuermann

  • type changed from defect to enhancement.

07/10/06 19:45:49 changed by ryanscheuermann

  • attachment 2934.patch added.

pass params to filters in get_categories

07/11/06 03:33:27 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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