Created
February 13, 2013 10:41
-
-
Save rosshanney/4943764 to your computer and use it in GitHub Desktop.
Load newer version of jQuery UI than version loaded by WP-UI plugin
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 | |
/* | |
Plugin name: Load newer version of jQuery UI | |
*/ | |
function gce_load_newer_jquery_ui() { | |
wp_deregister_script( 'jquery-ui' ); | |
wp_enqueue_script( 'jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js', array( 'jquery') ); | |
} | |
add_action( 'wp_enqueue_scripts', 'gce_load_newer_jquery_ui', 1000 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment