wp_dequeue_script
Remove a previously enqueued script.
Description
wp_dequeue_script( (string) $handle );
Parameters (1)
- 0. $handle (string)
- Name of the script to be removed.
Usage
if ( !function_exists( 'wp_dequeue_script' ) ) { require_once ABSPATH . WPINC . '/functions.wp-scripts.php'; } // Name of the script to be removed. $handle = ''; // NOTICE! Understand what this does before running. $result = wp_dequeue_script($handle);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/functions.wp-scripts.php
- function wp_dequeue_script( $handle ) {
- _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
- wp_scripts)->dequeue( $handle );
- }