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.
Leave a Reply
You must be logged in to post a comment.
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.
You must be logged in to post a comment.
There’s the
plugins_loaded
hook for normal Plugins andmuplugins_loaded
, which runs earlier.My best advice for hooks is making cross file searches for
do_action
or dump the content of theall
hook with$GLOBALS['wp_filter'][ current_filter() ];
.