apply_filters( ‘wp_sitemaps_taxonomies_pre_url_list’, array[]|null $url_list, string $taxonomy, int $page_num )

In this article

Filters the taxonomies URL list before it is generated.

Description

Returning a non-null value will effectively short-circuit the generation, returning that value instead.

Parameters

$url_listarray[]|null
The URL list. Default null.
$taxonomystring
Taxonomy name.
$page_numint
Page of results.

Source

$url_list = apply_filters(
	'wp_sitemaps_taxonomies_pre_url_list',
	null,
	$taxonomy,
	$page_num
);

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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