Created
June 16, 2017 19:18
-
-
Save elimn/e302522579650914e03048ebed146854 to your computer and use it in GitHub Desktop.
MT | Example for deregistering a script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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