get_sitemap_url
get_sitemap_url ( $name, $subtype_name = '', $page = 1 )
Parameters:- (string) name The sitemap name.
- (string) subtype_name The sitemap subtype name. Default empty string.
- (int) page The page of the sitemap. Default 1.
Returns:- (string|false) The sitemap URL or false if the sitemap doesn't exist.
Defined at: - Introduced in WordPress: 5.5.1
- Deprecated in WordPress: —
Description
Retrieves the full URL for a sitemap.