wp_sitemaps_taxonomies_pre_max_num_pages хук-фильтр . WP 5.5.0
Filters the max number of pages before it is generated.
Passing a non-null value will short-circuit the generation, returning that value instead.
Использование
add_filter( 'wp_sitemaps_taxonomies_pre_max_num_pages', 'filter_function_name_4936', 10, 2 ); function filter_function_name_4936( $max_num_pages, $taxonomy ){ // filter... return $max_num_pages; }
- $max_num_pages(число)
- The maximum number of pages.
По умолчанию: null - $taxonomy(строка)
- Taxonomy name.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp_sitemaps_taxonomies_pre_max_num_pages
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php 153
$max_num_pages = apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy );