Description
Filters the max number of pages for a taxonomy sitemap before it is generated. Passing a non-null value will short-circuit the generation, returning that value instead.
Occurrences
Filename | Line Number |
---|---|
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php | 166 |
Parameters
Type | Name | Description |
---|---|---|
int|null | $max_num_pages | The maximum number of pages. Default null. |
string | $taxonomy | Taxonomy name. |
PHP Doc
/**
* Filters the max number of pages for a taxonomy sitemap before it is generated.
*
* Passing a non-null value will short-circuit the generation,
* returning that value instead.
*
* @since 5.5.0
*
* @param int|null $max_num_pages The maximum number of pages. Default null.
* @param string $taxonomy Taxonomy name.
*/