You appear to be a bot. Output may be restricted
Description
The index type corresponding to a sitemap type.
Usage
$string = jp_sitemap_index_type_of( $type );
Parameters
- $type
- ( string ) required – The sitemap type.
Returns
string The index type.
Source
File name: jetpack/modules/sitemaps/sitemap-constants.php
Lines:
1 to 12 of 12
function jp_sitemap_index_type_of( $type ) { if ( JP_PAGE_SITEMAP_TYPE === $type ) { return JP_PAGE_SITEMAP_INDEX_TYPE; } elseif ( JP_IMAGE_SITEMAP_TYPE === $type ) { return JP_IMAGE_SITEMAP_INDEX_TYPE; } elseif ( JP_VIDEO_SITEMAP_TYPE === $type ) { return JP_VIDEO_SITEMAP_INDEX_TYPE; } else { return "error-bad-type-$type"; } }