Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
change default source of jQuery in wordpress
<?php
function add_scripts() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery',
'//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js');
wp_enqueue_script( 'jquery' );
}
add_action('wp_enqueue_scripts', 'add_scripts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment