apply_filters( 'wp_get_custom_css', string $css, string $stylesheet )
- Since
- 4.7.0
Filters the custom CSS output into the head element.
Parameters
$cssstring- CSS pulled in from the Custom CSS post type.
$stylesheetstring- The theme stylesheet name.
Where this hook fires · 1
wp-includes/theme.php:2053wp_get_custom_css()
Source code
* * @since 4.7.0 * * @param string $css CSS pulled in from the Custom CSS post type. * @param string $stylesheet The theme stylesheet name. */ $css = apply_filters( 'wp_get_custom_css', $css, $stylesheet ); return $css;} /** * Updates the `custom_css` post for a given theme.Changelog
Introduced in 4.7.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 7.1.0 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.