WordPress at a glance

wp_dequeue_script() WP 1.0

Remove a previously enqueued script.

  • See: WP_Dependencies::dequeue()

No Hooks.

Return

Nothing (null).

Usage

wp_dequeue_script( $handle );
$handle(string) (required)
Name of the script to be removed.

Code of wp_dequeue_script: wp-includes/functions.wp-scripts.php VER 5.0.1

<?php
function wp_dequeue_script( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );

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

Related Functions

From tag: script

More from category: Scripts and Styles

No comments
    Hello, !     Log In . Register