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