The Window of Opportunity: When Each WordPress Bootstrap Hook Is Open
In short
- Bootstrap hooks are narrow time windows: code outside its window breaks silently or fatally.
- Five startup stages: `muplugins_loaded` → `plugins_loaded` → `after_setup_theme` → `init` → `wp_loaded`.
- Load-order bugs depend on the environment, which makes them hard to reproduce.