[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
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 |
wp_sitemaps_get_server() X-Ref |
Retrieves the current Sitemaps server instance. since: 5.5.0 return: WP_Sitemaps Sitemaps instance. |
wp_get_sitemap_providers() X-Ref |
Gets an array of sitemap providers. since: 5.5.0 return: WP_Sitemaps_Provider[] Array of sitemap providers. |
wp_register_sitemap_provider( $name, WP_Sitemaps_Provider $provider ) X-Ref |
Registers a new sitemap provider. 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. return: bool Whether the sitemap was added. |
wp_sitemaps_get_max_urls( $object_type ) X-Ref |
Gets the maximum number of URLs for a sitemap. since: 5.5.0 param: string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user'). return: int The maximum number of URLs. |
get_sitemap_url( $name, $subtype_name = '', $page = 1 ) X-Ref |
Retrieves the full URL for a sitemap. 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. return: string|false The sitemap URL or false if the sitemap doesn't exist. |
Generated: Sun Nov 24 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |