Created
August 3, 2017 12:30
-
-
Save shangdev/1f2d955e58ae1af9f15a43b731f94353 to your computer and use it in GitHub Desktop.
Change Import Jquery.js method
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
//Making jQuery Google API | |
function modify_jquery() { | |
if (!is_admin()) { | |
// comment out the next two lines to load the local copy of jQuery | |
wp_deregister_script('jquery'); | |
} | |
} | |
add_action('init', 'modify_jquery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment