wp_sitemaps_stylesheet_css
Filters the CSS only for the sitemap stylesheet.
Usage
add_filter( 'wp_sitemaps_stylesheet_css', 'wp_kama_sitemaps_stylesheet_css_filter' ); /** * Function for `wp_sitemaps_stylesheet_css` filter-hook. * * @param string $css CSS to be applied to default XSL file. * * @return string */ function wp_kama_sitemaps_stylesheet_css_filter( $css ){ // filter... return $css; }
- $css(string)
- CSS to be applied to default XSL file.
Changelog
Since 5.5.0 | Introduced. |
Where the hook is called
wp_sitemaps_stylesheet_css
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php 315
return apply_filters( 'wp_sitemaps_stylesheet_css', $css );