wp_sitemaps_stylesheet_index_content
Filters the content of the sitemap index stylesheet.
Usage
add_filter( 'wp_sitemaps_stylesheet_index_content', 'wp_kama_sitemaps_stylesheet_index_content_filter' );
/**
* Function for `wp_sitemaps_stylesheet_index_content` filter-hook.
*
* @param string $xsl_content Full content for the XML stylesheet.
*
* @return string
*/
function wp_kama_sitemaps_stylesheet_index_content_filter( $xsl_content ){
// filter...
return $xsl_content;
}
- $xsl_content(string)
- Full content for the XML stylesheet.
Changelog
| Since 5.5.0 | Introduced. |
Where the hook is called
wp_sitemaps_stylesheet_index_content
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php 249
return apply_filters( 'wp_sitemaps_stylesheet_index_content', $xsl_content );