[wp-trac] [WordPress Trac] #61152: Change Request: Please pass the full $args array to hook 'get_categories_taxonomy' and allow modification
WordPress Trac
noreply at wordpress.org
Mon May 6 13:53:30 UTC 2024
#61152: Change Request: Please pass the full $args array to hook
'get_categories_taxonomy' and allow modification
-------------------------+-----------------------------
Reporter: beargfr | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 6.5
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Currently, hook point 'get_categories_taxonomy' only receives single
element of the $args array: $args['taxonomy'].
Passing the entire $args array instead would permit modification at that
hook point and would make it simple to provide additional function at that
point, such as controlling the results of get_categories by setting
$args['exclude'], $args['include'] and thus controlling which categories
are listed by the things such as category widgets, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61152>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list