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.

Top ↑

See also


Top ↑

Parameters

$args

(array)Array of WP_Term_Query arguments.

$taxonomy

(string)Taxonomy name.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.