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)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
pass params to filters in get_categories