[wp-trac] [WordPress Trac] #58314: Add a filter to the usernames in wp_dropdown_users

WordPress Trac noreply at wordpress.org
Mon May 15 09:19:56 UTC 2023


#58314: Add a filter to the usernames in wp_dropdown_users
-----------------------------+-----------------------------
 Reporter:  dominik.schwind  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:  administration   |
-----------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58314>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list