WordPress at Your Fingertips
filter is not described

wp_sitemaps_stylesheet_index_url filter-hook . WP 5.5.0

Filters the URL for the sitemap index stylesheet.

If a falsey value is returned, no stylesheet will be used and the "raw" XML of the sitemap index will be displayed.


add_filter( 'wp_sitemaps_stylesheet_index_url', 'filter_function_name_1428' );
function filter_function_name_1428( $sitemap_url ){
	// filter...

	return $sitemap_url;
Full URL for the sitemaps index XSL file.


Since 5.5.0 Introduced.

Where the hook is called

wp-includes/sitemaps/class-wp-sitemaps-renderer.php 114
return apply_filters( 'wp_sitemaps_stylesheet_index_url', $sitemap_url );

Where in WP core the hook is used WordPress

Usage not found.