wp_sitemaps_users_query_args WordPress Filter Hook
The wp_sitemaps_users_query_args hook allows you to modify the arguments used when querying for users to include in a sitemap. This can be useful if you need to exclude certain users from your sitemap or only include users from certain roles.
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
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |