A WordPress-centric search engine for devs and theme authors



wp_custom_css_cb ›

Since4.7.0
Deprecatedn/a
wp_custom_css_cb ( No parameters )
Access:
  • public
Defined at:
Codex:

Render the Custom CSS style element.



Source

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