WordPress at a glance
filter is not described

wp_sitemaps_posts_query_args filter-hook . WP 5.5.0

Filters the query arguments for post type sitemap queries.

Usage

add_filter( 'wp_sitemaps_posts_query_args', 'filter_function_name_87', 10, 2 );
function filter_function_name_87( $args, $post_type ){
	// filter...

	return $args;
}
$args(array)
Array of WP_Query arguments.
$post_type(string)
Post type name.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

WP_Sitemaps_Posts::get_posts_query_args()
wp_sitemaps_posts_query_args
wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php 200-213
$args = apply_filters(
	'wp_sitemaps_posts_query_args',
	array(
		'orderby'                => 'ID',
		'order'                  => 'ASC',
		'post_type'              => $post_type,
		'posts_per_page'         => wp_sitemaps_get_max_urls( $this->object_type ),
		'post_status'            => array( 'publish' ),
		'no_found_rows'          => true,
		'update_post_term_cache' => false,
		'update_post_meta_cache' => false,
	),
	$post_type
);

Где используется хук в ядре WP

Использование не найдено.