wp_deregister_script [ WordPress Function ]
wp_deregister_script ( $handle )
| See: |
|
| Defined at: |
|
Soorgelijke functies: wp_register_script, wp_deregister_style, wp_register_style, wp_dequeue_script, wp_print_scripts
Remove a registered script.
Source
<?php
function wp_deregister_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->remove( $handle );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp deregister script « WordPress Codex
Description. Remove a registered script (javascript). Usage. <?php wp_deregister_script( $handle ); ?> Example. <?php wp_deregister_script(' jquery'); ?> ...
codex.wordpress.org - WordPress › Support » Tags — wp_deregister_script
Register · WordPress › Support » wp_deregister_script. Tag: wp_deregister_script Add New » ... wp_deregister_script mystery, 12, 10sexyapples, 1 year ...
wordpress.org - 5 Tips For Using jQuery with WordPress / Eric Martin / ericmmartin.com
Sep 18, 2009 ... function my_init() { if (!is_admin()) { wp_deregister_script('jquery'); // load the local copy of jQuery in the footer wp_register_script('jquery', ...
www.ericmmartin.com - Pull Request #51: Fixes wp_deregister_script Error with WP 3.3 by ...
Feb 9, 2012 ... Fixes the error thrown with wp 'wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the ...
github.com
Gebruikersdiscussies [ wordpress.org ]
- karaloko on "deregister gd-star rating on home page"
- RavanH on "Script handle naming convention"
- MickeyRoush on "[Plugin: Contact Form 7] Deregister script?"
- MickeyRoush on "[Plugin: Contact Form 7] Deregister script?"
- MickeyRoush on "deregister gd-star rating on home page"
- sangeetamevad on "deregister gd-star rating on home page"
- danbo on "Ajax Event Calendar conflict with Easy FancyBox"
- danbo on "Ajax Event Calendar conflict with Easy FancyBox"
- Eran Miller on "Ajax Event Calendar conflict with Easy FancyBox"
- RavanH on "Ajax Event Calendar conflict with Easy FancyBox"