W3cubDocs

/WordPress

apply_filters( 'wp_sitemaps_stylesheet_url', string $sitemap_url )

Filters the URL for the sitemap stylesheet.

Description

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

Parameters

$sitemap_url

(string) Full URL for the sitemaps XSL file.

Source

File: wp-includes/sitemaps/class-wp-sitemaps-renderer.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_stylesheet_url