wp_sitemaps_stylesheet_css
Filters the CSS only for the sitemap stylesheet.
Использование
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(строка)
- CSS to be applied to default XSL file.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp_sitemaps_stylesheet_css
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php 315
return apply_filters( 'wp_sitemaps_stylesheet_css', $css );