Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_deregister_style [ WordPress Function ]

wp_deregister_style ( $handle )
Parameters:
  • (string) $handle Name of the stylesheet.
See:
  • WP_Styles::remove()
Defined at:



Remove a registered CSS file.

Source


<?php
function wp_deregister_style$handle ) {
    global 
$wp_styles;
    if ( ! 
is_a$wp_styles'WP_Styles' ) ) {
        if ( ! 
did_action'init' ) )
            
_doing_it_wrong__FUNCTION__sprintf__'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
                
'<code>wp_enqueue_scripts</code>''<code>admin_enqueue_scripts</code>''<code>init</code>' ), '3.3' );
        
$wp_styles = new WP_Styles();
    }

    
$wp_styles->remove$handle );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics