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: ''
Return
(int) Total number of pages.
Source
File: wp-includes/sitemaps/class-wp-sitemaps-provider.php
abstract public function get_max_num_pages( $object_subtype = '' );
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |