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