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 of WP_Query arguments.

$post_type

Post type name.


Source

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

View on GitHub



Changelog

Changelog
Version Description
6.1.0 Added ignore_sticky_posts default parameter.
5.5.0 Introduced.