wphooks.info - _admin_menu

_admin_menu

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/menu.php:
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
} else {

	/**
	 * Fires before the administration menu loads in the admin.
	 *
	 * The hook fires before menus and sub-menus are removed based on user privileges.
	 *
	 * @private
	 * @since 2.2.0
	 */
	do_action( '_admin_menu' );
}

// Create list of page plugin hook names.
foreach ( $menu as $menu_page ) {
	if ( false !== $pos = strpos( $menu_page[2], '?' ) ) {
		// Handle post_type=post|page|foo pages.
		$hook_name = substr( $menu_page[2], 0, $pos );
		$hook_args = substr( $menu_page[2], $pos + 1 );
		wp_parse_str( $hook_args, $hook_args );