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

scribu scribu at gmail.com
Mon Apr 6 14:10:38 GMT 2009


1. About using template_redirect:

DD32:

[template_redirect] is one of the easiest filters to use after WP has loaded
and parsed everything, and is ready to start outputting. when this action
fires, Plugins have everything at their disposal, and the theme hasnt
displayed anything yet, Very useful time to inspect and redirect if need be,
or to enqueue stuff that'll be needed (since you can see the posts now)


 2. You can use get_bloginfo('template_url').

--
http://scribu.net


More information about the wp-hackers mailing list