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

Parameters

$argsarray
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

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.