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.
174* It runs on admin-ajax.php and admin-post.php as well.175*176* This is roughly analogous to the more general {@see 'init'} hook, which fires earlier.177*178* @since 2.5.0179*/180do_action('admin_init');181182if(isset($plugin_page)){183if(!empty($typenow)){184$the_parent=$pagenow.'?post_type='.$typenow;185}else{186$the_parent=$pagenow;
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.