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.


Top ↑

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


Top ↑

Source

File: wp-settings.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.