WordPress at a glance
function is not described

WP_Sitemaps_Provider::get_max_num_pages() public WP 5.5.0

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

{} It's a 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.

Code of WP_Sitemaps_Provider::get_max_num_pages() WP 5.5.1

<?php
abstract public function get_max_num_pages( $object_subtype = '' );