WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.