Opened 7 years ago
Closed 7 years ago
#2934 closed enhancement (fixed)
pass parameters to get_categories filters
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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 (1)
Change History (3)
comment:1
ryanscheuermann — 7 years ago
- Type changed from defect to enhancement
ryanscheuermann — 7 years ago
Note: See
TracTickets for help on using
tickets.

pass params to filters in get_categories