wp_sitemaps_stylesheet_css
Filter HookDescription
Filters the CSS only for the sitemap stylesheet.Hook Information
File Location |
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php
View on GitHub
|
Hook Type | Filter |
Line Number | 315 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$css
|
CSS to be applied to default XSL file. |
Usage Examples
Basic Usage
<?php
// Hook into wp_sitemaps_stylesheet_css
add_filter('wp_sitemaps_stylesheet_css', 'my_custom_filter', 10, 1);
function my_custom_filter($css) {
// Your custom filtering logic here
return $css;
}
Source Code Context
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php:315
- How this hook is used in WordPress core
<?php
310 *
311 * @since 5.5.0
312 *
313 * @param string $css CSS to be applied to default XSL file.
314 */
315 return apply_filters( 'wp_sitemaps_stylesheet_css', $css );
316 }
317 }
PHP Documentation
<?php
/**
* Filters the CSS only for the sitemap stylesheet.
*
* @since 5.5.0
*
* @param string $css CSS to be applied to default XSL file.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php
Related Hooks
Related hooks will be displayed here in future updates.