The Window of Opportunity: When Each WordPress Bootstrap Hook Is Open

15 Sep 2026· Originally published on 4wp.dev ·WordPress Hooks

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.
Read the full article on 4wp.dev →