W3cubDocs

/WordPress

WP_Sitemaps_Provider::get_max_num_pages( string $object_subtype = ): int

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

Parameters

$object_subtypestringoptional
Object subtype.

Default:''

Return

int Total number of pages.

Source

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

Changelog

Version Description
5.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps_provider/get_max_num_pages