wp_sitemaps_taxonomies_query_args WordPress Filter Hook
The wp_sitemaps_taxonomies_query_args hook allows you to modify the arguments passed to WP_Term_Query when retrieving terms to include in a sitemap. This can be useful if you need to include custom taxonomies or terms in your sitemap.
apply_filters( 'wp_sitemaps_taxonomies_query_args', array $args , string $taxonomy ) #
Filters the taxonomy terms query arguments.
Description
Allows modification of the taxonomy query arguments before querying.
See also
- WP_Term_Query: for a full list of arguments
Parameters
- $args
(array)Array of WP_Term_Query arguments.
- $taxonomy
(string)Taxonomy name.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |