WordPress at Your Fingertips
filter is not described

wp_get_custom_css filter-hook . WP 4.7.0

Filters the Custom CSS Output into the <head>.


add_filter( 'wp_get_custom_css', 'filter_function_name_190', 10, 2 );
function filter_function_name_190( $css, $stylesheet ){
	// filter...

	return $css;
CSS pulled in from the Custom CSS CPT.
The theme stylesheet name.

Where the hook is called

wp-includes/theme.php 1915
$css = apply_filters( 'wp_get_custom_css', $css, $stylesheet );

Where in WP core the hook is used WordPress

wp-includes/customize/class-wp-customize-custom-css-setting.php 88
add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );
wp-includes/default-filters.php 223
add_filter( 'wp_get_custom_css', 'wp_replace_insecure_home_url' );