WP_Sitemaps_Provider::get_max_num_pages()publicWP 5.5.0

Gets the max number of pages available for the object type.

Method of the class: WP_Sitemaps_Provider{}

No Hooks.

Return

Int. Total number of pages.

Usage

$WP_Sitemaps_Provider = new WP_Sitemaps_Provider();
$WP_Sitemaps_Provider->get_max_num_pages( $object_subtype );
$object_subtype(string)
Object subtype.
Default: ''

Changelog

Since 5.5.0 Introduced.

WP_Sitemaps_Provider::get_max_num_pages() code WP 6.6.2

abstract public function get_max_num_pages( $object_subtype = '' );