[wp-trac] [WordPress Trac] #17025: wp_list_authors() is not filterable

WordPress Trac noreply at wordpress.org
Fri Jun 10 22:20:40 UTC 2022


#17025: wp_list_authors() is not filterable
-------------------------------------------------+-------------------------
 Reporter:  kevinB                               |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.1
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  early needs-dev-note 2nd-opinion     |     Focuses:
  has-patch                                      |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 To summarize the above, I think we should:
  * Add a `wp_list_authors_args` filter for `$query_args`. See
 [source:tags/6.0/src/wp-includes/user.php#L1628 wp_dropdown_users_args]
 for example.
  * Add a `wp_list_users_args` filter to `wp_list_users()` too, for
 consistency.
  * Replace the `wp_list_author_full_name` filter with this string for now,
 added in [21876] / #20637:
 {{{
 _x( '%1$s %2$s', 'Display name based on first name and last name' )
 }}}

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


More information about the wp-trac mailing list