Filters the query arguments for authors with public posts.
Description
Allows modification of the authors query arguments before querying.
See also
- WP_User_Query: for a full list of arguments
Parameters
$args
array- Array of WP_User_Query arguments.
Source
$args = apply_filters(
'wp_sitemaps_users_query_args',
array(
'has_published_posts' => array_keys( $public_post_types ),
'number' => wp_sitemaps_get_max_urls( $this->object_type ),
)
);
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.