[wp-trac] [WordPress Trac] #17025: wp_list_authors() is not filterable
WordPress Trac
noreply at wordpress.org
Tue Sep 20 16:25:12 UTC 2022
#17025: wp_list_authors() is not filterable
--------------------------------------+-----------------------
Reporter: kevinB | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: needs-dev-note has-patch | Focuses:
--------------------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"54262" 54262]:
{{{
#!CommitTicketReference repository="" revision="54262"
Users: Make `wp_list_authors()` and `wp_list_users()` filterable.
This commit adds three filters to customize the `wp_list_authors()` and
`wp_list_users()` output:
* `wp_list_authors_args`: Filters the query arguments for the list of all
authors of the site.
* `pre_wp_list_authors_post_counts_query`: Filters whether to short-
circuit performing the query for author post counts. This may be useful to
account for custom post types or post statuses.
* `wp_list_users_args`: Filters the query arguments for the list of all
users of the site.
Follow-up to [979], [3848], [5135], [5727], [31653], [52064], [53486],
[53501].
Props kevinB, wonderboymusic, DrewAPicture, Mte90, audrasjb, rafiahmedd,
costdev, nacin, afercia, chetan200891, hellofromTonya, TimothyBlynJacobs,
chaion07, SergeyBiryukov.
Fixes #17025.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17025#comment:76>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list