[ 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. 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. param: string $name Unique name for the sitemap provider. param: WP_Sitemaps_Provider $provider The `Sitemaps_Provider` instance implementing the sitemap. since: 5.5.0 |
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. param: string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user'). since: 5.5.0 |
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. 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. since: 5.5.1 |
Generated: Wed Dec 25 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |