Skip to content

Instantly share code, notes, and snippets.

@elimn
Created June 16, 2017 19:18
Show Gist options
  • Save elimn/e302522579650914e03048ebed146854 to your computer and use it in GitHub Desktop.
Save elimn/e302522579650914e03048ebed146854 to your computer and use it in GitHub Desktop.
MT | Example for deregistering a script
<?php
/**
* An example for how to dequeue a script
*
* Obtain the handle of your script by searching through the code, and then
* add a wp_deregister_script() function call for that handle.
*/
function tribe_dequeue_script_example() {
wp_deregister_script( 'tribe-events-jquery-resize' );
}
add_action( 'wp_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );
add_action( 'admin_enqueue_scripts', 'tribe_dequeue_script_example', PHP_INT_MAX );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment