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
.
View all references
do_action( 'wp_loaded' );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Migrate from Codex:
Minify HTML codes when page is output
If you only want to load a function only in the front end.
Same as above, but using anonymous function (PHP 5.3 or higher).