wp_custom_css_cb()

In this article

Renders the Custom CSS style element.

Source

function wp_custom_css_cb() {	$styles = wp_get_custom_css();	if ( $styles || is_customize_preview() ) :	$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';	?>	<style<?php echo $type_attr; ?> id="wp-custom-css">	<?php	// Note that esc_html() cannot be used because `div &gt; span` is not interpreted properly.	echo strip_tags( $styles );	?>	</style>	<?php	endif; } 

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.