apply_filters( ‘wp_sitemaps_stylesheet_index_url’, string $sitemap_url )

In this article

Filters the URL for the sitemap index stylesheet.

Description

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

Parameters

$sitemap_urlstring
Full URL for the sitemaps index XSL file.

Source

return apply_filters( 'wp_sitemaps_stylesheet_index_url', $sitemap_url );

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.