Skip to content

Instantly share code, notes, and snippets.

@bnetter
Created March 6, 2013 17:18
Show Gist options
  • Select an option

  • Save bnetter/5101090 to your computer and use it in GitHub Desktop.

Select an option

Save bnetter/5101090 to your computer and use it in GitHub Desktop.
<?php
//Using jQuery Google API
add_action('init', 'modify_jquery');
function modify_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js', false, '1.8.1');
wp_enqueue_script('jquery');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment