apply_filters( 'wp_sitemaps_users_query_args', array $args )
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
File: wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
.
View all references
$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. |