Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tjhole/7452056 to your computer and use it in GitHub Desktop.
Save tjhole/7452056 to your computer and use it in GitHub Desktop.
WORDPRESS: Function - Enqueue JQUERY and JQUERY UI
wp_deregister_script('jquery');
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
wp_enqueue_script('jquery');
wp_register_script('jqueryui', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js", false, null);
wp_enqueue_script('jqueryui');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment