Make WordPress Core

Opened 21 months ago

Last modified 16 months ago

#58314 new enhancement

Add a filter to the usernames in wp_dropdown_users

Reported by: dominikschwind's profile dominik.schwind Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.3
Component: Users Keywords:
Focuses: administration Cc:

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.

Change History (1)

#1 @sabernhardt
16 months ago

  • Component changed from General to Users
Note: See TracTickets for help on using tickets.