[wp-hackers] wp_register_script with mootools or private javascript

Viper007Bond viper at viper007bond.com
Fri Nov 7 08:35:37 GMT 2008


I don't get your question, but here's a much, much better method of setting
the JS URL:

wp_enqueue_script( 'moocore',
plugins_url('/myplugin/js/mootools-1.2-core.js'), array('mootools'), '1.2'
);

On Fri, Nov 7, 2008 at 12:21 AM, Daiv Mowbray <daiv at daivmowbray.com> wrote:

>
> Will wp_register_script work across plugins if I use it for something other
> than the jquery?
>
> wp_register_script('moocore',
> '$url/wp-content/plugins/myplugin/js/mootools-1.2-core.js',
> array('mootools'), '1.2');
>
> ----------
> Daiv Mowbray
> daiv at daivmowbray.com
> ----------
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list