WordPress at a glance

wp_custom_css_cb() WP 1.0

Render the Custom CSS style element.

Works based on: wp_get_custom_css()

No Hooks.

Return

Nothing (null).

Usage

wp_custom_css_cb();

Code of wp_custom_css_cb: wp-includes/theme.php VER 4.9.8

<?php
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;
}

Related Functions

From category: Other Theme Functions

No comments
    Hello, !     Log In . Register