wp_get_custom_css filter-hook . WP 4.7.0
Filters the Custom CSS Output into the <head>.
Usage
add_filter( 'wp_get_custom_css', 'filter_function_name_3713', 10, 2 ); function filter_function_name_3713( $css, $stylesheet ){ // filter... return $css; }
- $css(string)
- CSS pulled in from the Custom CSS CPT.
- $stylesheet(string)
- The theme stylesheet name.
Changelog
Since 4.7.0 | Introduced. |
Where the hook is called
wp_get_custom_css
wp-includes/theme.php 1918
$css = apply_filters( 'wp_get_custom_css', $css, $stylesheet );
Where in WP core the hook is used WordPress
wp-includes/theme.php 88
add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );