WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Шаблоны сайтов на русском
событие не описано

admin_init хук-событие . WP 2.5.0

Fires as an admin screen or script is being initialized.

Note, this does not just run on user-facing admin screens. It runs on admin-ajax.php and admin-post.php as well.

This is roughly analogous to the more general 'init' hook, which fires earlier.

Использование

add_action( 'admin_init', 'action_function_name_418' );
function action_function_name_418(){
	// action...
}

Где вызывается хук

В файле: /wp-admin/admin.php
admin_init
wp-admin/admin.php 169
do_action( 'admin_init' );
wp-admin/admin-ajax.php 45
do_action( 'admin_init' );
wp-admin/admin-post.php 30
do_action( 'admin_init' );

Где используется хук (в ядре WP)

wp-admin/includes/admin-filters.php 106
add_action( 'admin_init', 'default_password_nag_handler' );
wp-admin/includes/admin-filters.php 140
add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'text_change_check' ), 100 );
wp-admin/includes/admin-filters.php 146
add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'add_suggested_content' ), 1 );
wp-admin/includes/admin-filters.php 41
add_action( 'admin_init', 'wp_admin_headers' );
wp-includes/class-wp-customize-manager.php 374
remove_action( 'admin_init', '_maybe_update_core' );
wp-includes/class-wp-customize-manager.php 375
remove_action( 'admin_init', '_maybe_update_plugins' );
wp-includes/class-wp-customize-manager.php 376
remove_action( 'admin_init', '_maybe_update_themes' );
wp-includes/default-filters.php 359
add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
wp-includes/default-filters.php 408
add_action( 'admin_init', 'register_admin_color_schemes', 1 );
wp-includes/default-filters.php 433
add_action( 'admin_init', '_wp_check_for_scheduled_split_terms' );
wp-includes/default-filters.php 534
add_action( 'admin_init', '_wp_admin_bar_init' );
wp-includes/ms-default-filters.php 84
add_action( 'admin_init', 'wp_schedule_update_network_counts' );
wp-includes/update.php 805
add_action( 'admin_init', '_maybe_update_core' );
wp-includes/update.php 811
add_action( 'admin_init', '_maybe_update_plugins' );
wp-includes/update.php 817
add_action( 'admin_init', '_maybe_update_themes' );