apply_filters( ‘wp_sitemaps_taxonomies_pre_max_num_pages’, int|null $max_num_pages, string $taxonomy )

In this article

Filters the max number of pages for a taxonomy sitemap before it is generated.

Description

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

Parameters

$max_num_pagesint|null
The maximum number of pages. Default null.
$taxonomystring
Taxonomy name.

Source

$max_num_pages = apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy );

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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