Opened 6 years ago
Last modified 6 years ago
#49260 new enhancement
Add filter to change wp_dropdown_categories default arguments
| Reported by: | jignashu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Taxonomy | Version: | 5.3.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
We can add new filter on wp-includes/category-template.php file.
Function name : wp_dropdown_categories($args)
in this function, we can add one filter to change the default argument values.
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)
Hi there, welcome to WordPress Trac! Thanks for the ticket.
Could you share a use case for this filter?
Just noting that
wp_dropdown_users_argsfilter was introduced in [34692] / #19867.At a glance, it would probably make sense to do the same for
wp_dropdown_categories()andwp_dropdown_pages().Maybe for
wp_dropdown_languages()too, but it's mostly used in the admin, so I guess I'd skip it for now, unless there's an actual use case for a filter there.