I am using WordPress 3.1.4 by now. I am confused with where (which hook) do I use to:
- Register Front End Scripts
- Register Front End Styles
- Enqueue Front End Scripts
- Enqueue Front End Styles
- Register Back End Scripts
- Register Back End Styles
- Enqueue Back End Scripts
- Enqueue Back End Styles
So far I use
- Register Front End Scripts -
init
- Register Front End Styles -
init
- Enqueue Front End Scripts -
init
- Enqueue Front End Styles -
init
- Register Back End Scripts -
admin_init
to register and/or enqueue - Register Back End Styles -
admin_init
scripts and styles - Enqueue Back End Scripts on front-
admin_print_scripts-{xxx}
- Enqueue Back End Styles and back-
admin_print_styles
ends?
Questions:
- Did I get my hooksWhich are right hooks to use? Perhaps not, but if so ...
- All front end register/enqueue scripts/styles in
init
? - Why is there no
admin_print_styles-{xxx}
?