I’ve used the WordPress hook, init
, to execute custom code early in WordPress, but is there another hook that executes earlier than that?
Leave a Reply
You must be logged in to post a comment.
I’ve used the WordPress hook, init
, to execute custom code early in WordPress, but is there another hook that executes earlier than that?
You must be logged in to post a comment.
If this page in the docs is accurate, you have 10 choices for hooks that occur before
init
.It seems that the earliest-running Action Hook in WordPress 4.x is
muplugins_loaded
. That hook is called after all activated Must-Use Plugins have been loaded.In the event that
mupluginst_loaded
might not trigger, theregistered_taxonomy
plugin fires right after that.