apply_filters( 'wp_sitemaps_stylesheet_url', string $sitemap_url )
- Since
- 5.5.0
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.
Compatibility
- WordPress
- since 5.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$sitemap_urlstring- Full URL for the sitemaps XSL file.
Where this hook fires · 1
wp-includes/sitemaps/class-wp-sitemaps-renderer.php:84WP_Sitemaps_Renderer::get_sitemap_stylesheet_url()
Source code
* the "raw" XML of the sitemap will be displayed. * * @since 5.5.0 * * @param string $sitemap_url Full URL for the sitemaps XSL file. */ return apply_filters( 'wp_sitemaps_stylesheet_url', $sitemap_url ); } /** * Gets the URL for the sitemap index stylesheet. * * @since 5.5.0Changelog
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.