[wp-hackers] proper action to hook into for styles and scripts

Bill Erickson bill.erickson at gmail.com
Mon May 28 16:09:58 UTC 2012


http://wpdevel.wordpress.com/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/

Use wp_enqueue_scripts to enqueue both scripts and styles on the frontend.

Use admin_enqueue_scripts to enqueue both scripts and styles on the backend.


---
Bill Erickson
WordPress Consultant
http://www.billerickson.net

NOTE: To better serve my clients, partners, and most importantly my family,
I've begun checking email only three times per day.

For phone calls, please schedule here: http://tungle.me/billerickson . If
it's an emergency, please call now and leave a voicemail



On Mon, May 28, 2012 at 11:05 AM, Chris McCoy <chris at lod.com> wrote:

> Ive seen people use these
>
> admin_print_styles
> admin_print_scripts
>
> and
>
> wp_print_styles
> wp_print_scripts
>
> and just
>
> init
>
> and just
>
> wp_enqueue_scripts
>
> which is the best way to go about it?
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list