[Plugin: WP UI – Tabs, Accordions, Sliders] Regarding custom code for Google's jQwery API
-
I would like to use this code to use Google’s jQwery API directly :
//Making jQuery Google API function modify_jquery() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', false, '1.4.4'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery');
As the tabs on pages created with your plugin view-able by every user (Guest,editor,admin etc.) , am I need to change the ((!is_admin()) role to ‘read’ capability ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP UI – Tabs, Accordions, Sliders] Regarding custom code for Google's jQwery API’ is closed to new replies.