W3cubDocs

/WordPress

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 on Trac

Changelog

Version Description
3.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_loaded