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.

Top ↑

See also


Top ↑

Parameters

$args

(array)Array of WP_User_Query arguments.


Top ↑

Source

File: wp-includes/sitemaps/providers/class-wp-sitemaps-users.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.