WordPress at Your Fingertips
action is not described

wp_loaded action-hook . WP 3.0.0

This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.

Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for users not logged in.


add_action( 'wp_loaded', 'action_function_name_9992' );
function action_function_name_9992(){
	// action...


Since 3.0.0 Introduced.

Where the hook is called

In file: /wp-settings.php
wp-settings.php 600
do_action( 'wp_loaded' );

Where in WP core the hook is used WordPress

wp-includes/class-wp-customize-manager.php 367
add_action( 'wp_loaded', array( $this, 'wp_loaded' ) );
wp-includes/class-wp-customize-widgets.php 112
add_action( 'wp_loaded', array( $this, 'override_sidebars_widgets_for_theme_switch' ) );
wp-includes/class-wp-rewrite.php 1485
add_action( 'wp_loaded', array( $this, 'flush_rules' ) );
wp-includes/class-wp-rewrite.php 1843
add_action( 'wp_loaded', array( $this, 'flush_rules' ) );
wp-includes/cron.php 952
add_action( 'wp_loaded', '_wp_cron', 20 );
wp-includes/default-filters.php 516
add_action( 'wp_loaded', '_custom_header_background_just_in_time' );