WordPress at a glance
filter is not described

wp_sitemaps_users_pre_max_num_pages filter-hook . WP 5.5.0

Filters the max number of pages before it is generated.

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

Usage

add_filter( 'wp_sitemaps_users_pre_max_num_pages', 'filter_function_name_106' );
function filter_function_name_106( $max_num_pages ){
	// filter...

	return $max_num_pages;
}
$max_num_pages(int)
The maximum number of pages.
Default: null

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

WP_Sitemaps_Users::get_max_num_pages()
wp_sitemaps_users_pre_max_num_pages
wp-includes/sitemaps/providers/class-wp-sitemaps-users.php 111
$max_num_pages = apply_filters( 'wp_sitemaps_users_pre_max_num_pages', null );

Где используется хук в ядре WP

Использование не найдено.