apply_filters( 'wp_sitemaps_posts_query_args', array $args, string $post_type )

Filters the query arguments for post type sitemap queries.

Description

See also

  • WP_Query: for a full list of arguments.

Parameters

$args

(array) Array of WP_Query arguments.

$post_type

(string) Post type name.

Source

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

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_posts_query_args