Core Function
View Source on Trac ↗ get_sitemap_url()
get_sitemap_url( mixed $name, mixed $subtype_name = '', mixed $page = 1 ) Retrieves the full URL for a sitemap.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $name string | The sitemap name. Required |
| $subtype_name string | The sitemap subtype name. Default empty string. |
| $page int | The page of the sitemap. Default 1. |
Return Value
((string)
| false) The sitemap URL or false if the sitemap doesn't exist.
Function Information
Since Version
5.5.1
Source File
wp-includes/sitemaps.php
Advertisement