Uses
Uses | Description |
---|---|
wp-includes/sitemaps.php: wp_sitemaps_max_urls | Filters the maximum number of URLs displayed on a sitemap. |
wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Gets the maximum number of URLs for a sitemap.
(string) (Required) Object type for sitemap to be filtered (e.g. 'post', 'term', 'user').
(int) The maximum number of URLs.
File: wp-includes/sitemaps.php
function wp_sitemaps_get_max_urls( $object_type ) { /** * Filters the maximum number of URLs displayed on a sitemap. * * @since 5.5.0 * * @param int $max_urls The maximum number of URLs included in a sitemap. Default 2000. * @param string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user'). */ return apply_filters( 'wp_sitemaps_max_urls', 2000, $object_type ); }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_sitemaps_get_max_urls