[wp-hackers] questions on best practices for wp_enqueue_script and wp_enqueue_style

Stephen Rider wp-hackers at striderweb.com
Fri Apr 10 03:21:19 GMT 2009

On Apr 6, 2009, at 7:27 AM, Michael Toppa wrote:

> 2. Both functions want the src path defined from the root of the  
> wordpress installation. PLUGINDIR seems to do the trick for the  
> plugin directory.

No -- PLUGINDIR is obsolete and problematic.  use WP_PLUGIN_DIR and  
WP_PLUGIN_URL instead.



Stephen Rider

More information about the wp-hackers mailing list