[wp-trac] [WordPress Trac] #55071: Add filters to wp_list_users()

WordPress Trac noreply at wordpress.org
Fri Feb 4 13:39:52 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:
-----------------------------+-----------------------------

Comment (by swissspidy):

 Thanks for contributing a patch here!

 Please note that filters need to be documented appropriately as per our
 guidelines, see https://developer.wordpress.org/coding-standards/inline-
 documentation-standards/php/#4-hooks-actions-and-filters.

 Also, `apply_filters( 'wp_list_users', $args );` on its own does not do
 anything. You would need to do `$args = apply_filters( 'wp_list_users',
 $args );` for it to have any effect.

 You might want to try submitting your change as a GitHub pull request so
 that you'll get notified if there's anything wrong with inline
 documentation and things like that. Makes everything a bit easier.

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


More information about the wp-trac mailing list