Switch language

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




wp_dequeue_script [ WordPress Function ]

wp_dequeue_script ( $handle )
See:
  • WP_Scripts::dequeue()
Defined at:



Remove an enqueued script.

Source


<?php
function wp_dequeue_script$handle ) {
    global 
$wp_scripts;
    if ( ! 
is_a$wp_scripts'WP_Scripts' ) ) {
        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_scripts = new WP_Scripts();
    }

    
$wp_scripts->dequeue$handle );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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