Created
August 5, 2017 10:44
-
-
Save shangdev/f22f635a8d17225b13b0adb860cb1d0c to your computer and use it in GitHub Desktop.
Wordpress:function.php写入取消默认Jquery的引入
This file contains hidden or 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
// Delete System Jquery | |
function delete_jquery() { | |
if ( is_admin() ) return; | |
wp_deregister_script('jquery'); | |
} | |
add_action('wp_enqueue_scripts', 'delete_jquery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment