What's the difference between wp and wp_loaded? Which one is earlier?


wp_loaded is fired once WordPress, all plugins, and the theme are fully loaded and instantiated.

wp runs immediately after the global WP class object is set up.

wp_loaded fires before wp. See the actions run during a typical request.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.