Posted By

nathanbweb on 05/17/11


Tagged

wordpress jquery api


Versions (?)

jQuery load latest version in WordPress


 / Published in: PHP
 

URL: http://bit.ly/kleary-latestjqy

  1. // from bit.ly/kleary-latestjqy
  2.  
  3. /**
  4. * Use latest jQuery release
  5. */
  6. if( !is_admin() ){
  7. wp_deregister_script('jquery');
  8. wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');
  9. wp_enqueue_script('jquery');
  10. }

Report this snippet  

You need to login to post a comment.