wp_sitemaps_stylesheet_url WordPress Filter Hook

wp_sitemaps_stylesheet_url is a filter hook used to modify the URL of the stylesheet used by the WP Sitemaps plugin. This hook is useful for customizing the appearance of your sitemap.

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.


Top ↑

Parameters

$sitemap_url

(string)Full URL for the sitemaps XSL file.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.