muplugins_loaded
bootstrapFires right after mu-plugins load — the true first hook of the request
muplugins_loaded is the earliest action in the entire WordPress bootstrap — it fires right after must-use (mu-plugins) and network-activated plugins are loaded, before a single regular plugin has run. Almost nobody hooks it, which is exactly why it makes a great trivia question.
Signature
do_action( 'muplugins_loaded' );Example
add_action( 'muplugins_loaded', function() {
error_log( 'Bootstrap started.' );
} );Common Use Cases
- Bootstrap code that must run before any regular plugin
- Define constants needed by plugins loaded afterward
- Multisite: react to network-activated plugins having loaded
- Mark a precise start-of-bootstrap timestamp for performance profiling






