Last active
December 14, 2023 11:43
-
-
Save kartikparmar/b2ae742259c92a6f047667c35f7cf876 to your computer and use it in GitHub Desktop.
dequeue jquery 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 | |
function dequeue_jquery_scripts() { | |
wp_dequeue_script( 'jquery' ); | |
wp_dequeue_script( 'jquery-ui' ); | |
wp_dequeue_script( 'jquery-ui-datepicker' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'dequeue_jquery_scripts', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment