Opened 3 years ago
Last modified 3 years ago
#58314 new enhancement
Add a filter to the usernames in wp_dropdown_users
| Reported by: | dominik.schwind | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Users | Version: | 6.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
Description
At the moment the only way to change the output of the function is the wp_dropdown_users filter which gets the finished HTML code as a parameter.
I propose a new filter in this loop: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/user.php#L1706 that allows a theme/plugin to hook into the creation of the $display value.
If there's no opposition to this idea, I'll happily work on this and create a patch.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)