WP_Sitemaps_Provider::get_max_num_pages() WordPress Method

The WP_Sitemaps_Provider::get_max_num_pages() method is used to return the maximum number of pages for the current sitemap provider. This is useful for sitemap providers that support paging of sitemaps.

WP_Sitemaps_Provider::get_max_num_pages( string $object_subtype = '' ) #

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


Parameters

$object_subtype

(string)(Optional) Object subtype.

Default value: ''


Top ↑

Return

(int) Total number of pages.


Top ↑

Source

File: wp-includes/sitemaps/class-wp-sitemaps-provider.php

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


Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.