开发者

What's the WordPress hook that is the "earliest" in execution?

开发者 https://www.devze.com 2022-12-31 06:20 出处:网络
I\'ve used the WordPress hook, init, to execute custom code early in WordPress, but is there another hook that executes earlier than开发者_C百科 that?If this page in the docs is accurate, you have 10

I've used the WordPress hook, init, to execute custom code early in WordPress, but is there another hook that executes earlier than开发者_C百科 that?


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, the registered_taxonomy plugin fires right after that.

0

精彩评论

暂无评论...
验证码 换一张
取 消