wp_custom_css_cb
Render the Custom CSS style element.
Description
wp_custom_css_cb();
Usage
if ( !function_exists( 'wp_custom_css_cb' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // NOTICE! Understand what this does before running. $result = wp_custom_css_cb();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.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 > span` is not interpreted properly. ?>
- </style>
- <?php endif;
- }