Created
September 14, 2017 13:23
-
-
Save andrasguseo/bc96152518c1057bd37e8f05060ee550 to your computer and use it in GitHub Desktop.
An example for how to dequeue 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