WordPress at Your Fingertips
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_6488' );
function filter_function_name_6488( $max_num_pages ){
	// filter...

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

Changelog

Since 5.5.0 Introduced.

Where the hook is called

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 );

Where in WP core the hook is used WordPress

Usage not found.