A WordPress-centric search engine for devs and theme authors



wp_dequeue_script ›

Since3.1.0
Deprecatedn/a
wp_dequeue_script ( $handle )
Parameters:
  • (string) $handle Name of the script to be removed.
    Required: Yes
See:
  • WP_Dependencies::dequeue()
Defined at:
Codex:

Remove a previously enqueued script.



Source

function wp_dequeue_script( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );

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