[wp-hackers] Load scripts in header only when needed

Ade Walker photofantaisie at gmail.com
Sat Nov 29 21:41:14 GMT 2008

Excellent! That worked perfectly. Thanks!

2008/11/29 Ozh <ozh at planetozh.com>

> Depends on your plugin
> I'd do the following: check if the plugin does something in posts, and
> if so, add_action('wp_footer','my_javascript') that would insert on
> bottom of the page the needed JS

More information about the wp-hackers mailing list