Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TheTheTS_head_scripts(){
- if(disablePlugin()){
- return;
- }
- wp_deregister_script( 'jquery' );
- wp_register_script( 'jquery', 'http://code.jquery.com/jquery-latest.min.js', false, 'latest');
- wp_enqueue_script( 'jquery' );
- wp_deregister_script( 'jquery-ui' );
- wp_register_script( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js');
- wp_enqueue_script( 'jquery-ui' );
- wp_deregister_script('thethe-toggle');
- wp_register_script( 'thethe-toggle', $GLOBALS['TheTheTS']['wp_plugin_dir_url'].'style/js/thethe.toggle.js');
- wp_enqueue_script( 'thethe-toggle' );
- wp_deregister_script('thethe-haccordion');
- wp_register_script('thethe-haccordion', $GLOBALS['TheTheTS']['wp_plugin_dir_url'].'style/js/thethe.haccordion.js');
- wp_enqueue_script('thethe-haccordion');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement