wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_sitemaps_taxonomies_pre_max_num_pages › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy )
Parameters: (2)
  • (int|null) $max_num_pages The maximum number of pages. Default null.
    Required: Yes
  • (string) $taxonomy Taxonomy name.
    Required: Yes
Defined at:
Codex:

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.





Source

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