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

Parameters

$argsarray
Array of WP_Term_Query arguments.
$taxonomystring
Taxonomy name.

Source

$args = apply_filters(
	'wp_sitemaps_taxonomies_query_args',
	array(
		'taxonomy'               => $taxonomy,
		'orderby'                => 'term_order',
		'number'                 => wp_sitemaps_get_max_urls( $this->object_type ),
		'hide_empty'             => true,
		'hierarchical'           => false,
		'update_term_meta_cache' => false,
	),
	$taxonomy
);

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.