[wp-hackers] WordPress TinyMCE plugin: preferred method for including jQuery

Ryann Micua ryannmicua at gmail.com
Fri Sep 14 04:47:49 UTC 2012


I did it this way:

1. wp_register_script('myscript', SCRIPT_LOCATION, array('jquery') ) 
//register my script with dependency on jquery
2. in my tmce plugin instead of <script></script> I do <?php 
wp_print_scripts('myscript'); ?> which loads my script and also jquery 
before it..

Hope that helps..

-- 
*Ryann Micua*
/Web Developer/
------------------------------------------------------------------------

Website: /www.pogidude.com/
Skype: /rmicua/
Mobile: /+639169273059/



More information about the wp-hackers mailing list