wp_loaded WordPress Action Hook
The wp_loaded hook is fired once WordPress has finished loading but before any headers are sent. This hook is generally used to initialize any code that needs to run after WordPress has loaded.
do_action( 'wp_loaded' ) #
This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
Description
Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for users not logged in.
More Information
AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for users not logged in.
The wp_loaded
action fires after init but before admin_init
.
Front-End: init -> widgets_init -> wp_loaded
Admin: init -> widgets_init -> wp_loaded -> admin_menu -> admin_init
Source
File: wp-settings.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |