Advertisement
Guest User

wp_enqueue_script

a guest
Aug 24th, 2012
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function TheTheTS_head_scripts(){
  2.     if(disablePlugin()){
  3.             return;
  4.     }      
  5.     wp_deregister_script( 'jquery' );
  6.     wp_register_script( 'jquery', 'http://code.jquery.com/jquery-latest.min.js', false, 'latest');
  7.     wp_enqueue_script( 'jquery' );
  8.  
  9.     wp_deregister_script( 'jquery-ui' );
  10.     wp_register_script( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js');
  11.     wp_enqueue_script( 'jquery-ui' );
  12.  
  13.     wp_deregister_script('thethe-toggle');
  14.     wp_register_script( 'thethe-toggle', $GLOBALS['TheTheTS']['wp_plugin_dir_url'].'style/js/thethe.toggle.js');
  15.     wp_enqueue_script( 'thethe-toggle' );
  16.  
  17.     wp_deregister_script('thethe-haccordion');
  18.     wp_register_script('thethe-haccordion', $GLOBALS['TheTheTS']['wp_plugin_dir_url'].'style/js/thethe.haccordion.js');
  19.     wp_enqueue_script('thethe-haccordion');
  20.    
  21. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement