Load order of plugins
The order in which plugins load is dependent on the method that is used to activate each plugin. The WordPress load order hook that is used to activate a plugin determines which point within the load process that plugin will load.
- On the
muplugins_loadedhook: Plugins that are activated viawpcom_vip_load_plugin( 'plugin-name' )fromclient-mu-plugins. This method of code-activating plugins is recommended. - Before the
after_setup_themehook: Plugins that are activated viawpcom_vip_load_plugin( 'plugin-name' )in a theme’sfunctions.php. This method is supported, but code activation fromclient-mu-pluginsis preferred. - Before the
plugins_loadedhook: Plugins that are manually activated from the WordPress Admin dashboard Plugins screen. This method is supported, but activating plugins through code is recommended.
Sometimes plugins have dependencies on running before specific hooks. To hook on very early actions or filters, load the plugin’s code from the /client-mu-plugins directory.
Last updated: December 31, 2025