wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_custom_css_cb › WordPress Function
Seit4.7.0
Veraltetn/v
› wp_custom_css_cb ( Keine Parameter )
| Definiert in: |
|
| Codex: |
Renders the Custom CSS style element.
Ähnliche Funktionen: wp_get_custom_css, wp_get_custom_css_post, wp_update_custom_css_post, _custom_background_cb, wp_customize_url
Quellcode
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 > span` is not interpreted properly.
echo strip_tags( $styles );
?>
</style>
<?php
endif;
}