[wp-hackers] wp_head()

John Blackbourn johnbillion+wp at gmail.com
Sat Nov 20 04:10:57 UTC 2010


On Sat, Nov 20, 2010 at 4:02 AM, Chris Klosowski
<chris at chriskdesigns.com> wrote:
> The first Hook that WordPress kicks into gear at is 'init'. If you are
> trying to catch something at it's earliest point 'init' is the place to be.

Not true. There are a few others before 'init', including
'plugins_loaded' (this is handy as it's the very earliest hook
available to plugins) and 'setup_theme' among a few others.

However, the 'init' hook is the earliest hook at which the entire
WordPress environment and all its functions are available. So if your
plugin is trying to catch something at its earliest point then, yes,
'init' is usually the one to go for, but not always.

Haluk, http://codex.wordpress.org/Query_Overview is also worth a read
if you're interested in how and when WordPress does what it does.

John


More information about the wp-hackers mailing list