What is the difference between `plugins_loaded` and `init` action hooks in WordPress boot sequence?

WordPress Fundamental Medium

WordPress Fundamental — Medium

What is the difference between `plugins_loaded` and `init` action hooks in WordPress boot sequence?

Key points

  • `plugins_loaded` fires after plugins but before core APIs are fully ready
  • `init` fires after WordPress is fully loaded, including core, plugins, and theme
  • `init` is appropriate for post types and taxonomies
  • Understanding the timing of these hooks is crucial for proper functionality

Ready to go further?

Related questions