[ Index ]

PHP Cross Reference of WordPress




/wp-includes/ -> sitemaps.php (summary)

Sitemaps: Public functions This file contains a variety of public functions developers can use to interact with the XML Sitemaps API.

File Size: 129 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions


Functions that are not part of a class:

wp_sitemaps_get_server()   X-Ref
Retrieves the current Sitemaps server instance.

return: WP_Sitemaps Sitemaps instance.
since: 5.5.0

wp_get_sitemap_providers()   X-Ref
Gets an array of sitemap providers.

return: WP_Sitemaps_Provider[] Array of sitemap providers.
since: 5.5.0

wp_register_sitemap_provider( $name, WP_Sitemaps_Provider $provider )   X-Ref
Registers a new sitemap provider.

return: bool Whether the sitemap was added.
since: 5.5.0
param: string               $name     Unique name for the sitemap provider.
param: WP_Sitemaps_Provider $provider The `Sitemaps_Provider` instance implementing the sitemap.

wp_sitemaps_get_max_urls( $object_type )   X-Ref
Gets the maximum number of URLs for a sitemap.

return: int The maximum number of URLs.
since: 5.5.0
param: string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user').

get_sitemap_url( $name, $subtype_name = '', $page = 1 )   X-Ref
Retrieves the full URL for a sitemap.

return: string|false The sitemap URL or false if the sitemap doesn't exist.
since: 5.5.1
param: string $name         The sitemap name.
param: string $subtype_name The sitemap subtype name. Default empty string.
param: int    $page         The page of the sitemap. Default 1.

Generated: Thu Dec 2 01:00:03 2021 Cross-referenced by PHPXref 0.7.1