Fires as an admin screen or script is being initialized.
Description
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.
169* It runs on admin-ajax.php and admin-post.php as well.170*171* This is roughly analogous to the more general {@see 'init'} hook, which fires earlier.172*173* @since 2.5.0174*/175do_action('admin_init');176177if(isset($plugin_page)){178if(!empty($typenow)){179$the_parent=$pagenow.'?post_type='.$typenow;180}else{181$the_parent=$pagenow;
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.