[wp-trac] [WordPress Trac] #55071: Add filters to wp_list_users() (was: Add a filter for fullname in wp_list_users())

WordPress Trac noreply at wordpress.org
Fri Feb 4 11:46:54 UTC 2022

#55071: Add filters to wp_list_users()
 Reporter:  tmatsuur         |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Users            |     Version:  5.9
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
Changes (by swissspidy):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => Future Release


 I think there's an opportunity here do add a couple more filters,

 Some thoughts:

 * Allow filtering the query args passed to `get_users()` (see also #55076)
 * Remove the detailed PHPDoc for the `$args` param and just point to
 `WP_User_Query::prepare_query()`, like `get_users()` does.
 * Add filter for the full name option, as you suggest.

Ticket URL: <https://core.trac.wordpress.org/ticket/55071#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list