[wp-trac] [WordPress Trac] #17025: wp_list_authors() is not filterable
WordPress Trac
noreply at wordpress.org
Tue Jun 14 14:52:39 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):
It looks like a `wp_list_authors_args` filter by itself is not enough, as
one would also need to override the raw SQL query for post counts, e.g. to
account for custom post types, see comment:11.
[attachment:"17025.13.diff"] also adds a
`pre_wp_list_authors_post_counts_query` filter for that, modeled after
`pre_months_dropdown_query` added in [50163] / #51660.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17025#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list