Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a plugin init hook that runs whenever the plugin is being loaded? I'd like to link the functions for requiring files and defining constants to such a hook if it exists.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

There's the plugins_loaded hook for normal Plugins and muplugins_loaded, which runs earlier.

My best advice for hooks is making cross file searches for do_action or dump the content of the all hook with $GLOBALS['wp_filter'][ current_filter() ];.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.