wp_custom_css_cb

Render the Custom CSS style element.

Description

wp_custom_css_cb(); 

Usage

  1. if ( !function_exists( 'wp_custom_css_cb' ) ) { 
  2. require_once ABSPATH . WPINC . '/theme.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_custom_css_cb(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/theme.php  
  1. function wp_custom_css_cb() { 
  2. $styles = wp_get_custom_css(); 
  3. if ( $styles || is_customize_preview() ) : ?> 
  4. <style type="text/css" id="wp-custom-css"> 
  5. <?php echo strip_tags( $styles ); // Note that esc_html() cannot be used because `div > span` is not interpreted properly. ?> 
  6. </style> 
  7. <?php endif;