Title: wp-admin/includes/menu.php | Developer.WordPress.org

---

# File: wp-admin/includes/menu.php

 * hook[custom_menu_order](https://developer.wordpress.org/reference/hooks/custom_menu_order/)
 * Filters whether to enable custom ordering of the administration menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/custom_menu_order/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/custom_menu_order/#uses)
   | Source: [wp-admin/includes/menu.php:284](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L284-L284)
 * hook[_user_admin_menu](https://developer.wordpress.org/reference/hooks/_user_admin_menu/)
 * Fires before the administration menu loads in the User Admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/_user_admin_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/_user_admin_menu/#uses)
   | Source: [wp-admin/includes/menu.php:30](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L30-L30)
 * hook[_admin_menu](https://developer.wordpress.org/reference/hooks/_admin_menu/)
 * Fires before the administration menu loads in the admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/_admin_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/_admin_menu/#uses)
   | Source: [wp-admin/includes/menu.php:41](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L41-L41)
 * hook[network_admin_menu](https://developer.wordpress.org/reference/hooks/network_admin_menu/)
 * Fires before the administration menu loads in the Network Admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/network_admin_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/network_admin_menu/#uses)
   | Source: [wp-admin/includes/menu.php:141](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L141-L141)
 * hook[user_admin_menu](https://developer.wordpress.org/reference/hooks/user_admin_menu/)
 * Fires before the administration menu loads in the User Admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/user_admin_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_admin_menu/#uses)
   | Source: [wp-admin/includes/menu.php:151](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L151-L151)
 * hook[admin_menu](https://developer.wordpress.org/reference/hooks/admin_menu/)
 * Fires before the administration menu loads in the admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/admin_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/admin_menu/#uses)
   | Source: [wp-admin/includes/menu.php:161](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L161-L161)
 * hook[menu_order](https://developer.wordpress.org/reference/hooks/menu_order/)
 * Filters the order of administration menu items.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/menu_order/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/menu_order/#uses)
   | Source: [wp-admin/includes/menu.php:306](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L306-L306)
 * function[add_cssclass()](https://developer.wordpress.org/reference/functions/add_cssclass/)
 * Adds a CSS class to a string.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/add_cssclass/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/add_cssclass/#uses)
   | Source: [wp-admin/includes/menu.php:205](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L205-L211)
 * hook[admin_page_access_denied](https://developer.wordpress.org/reference/hooks/admin_page_access_denied/)
 * Fires when access to an admin page is denied.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/admin_page_access_denied/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/admin_page_access_denied/#uses)
   | Source: [wp-admin/includes/menu.php:378](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L378-L378)
 * function[add_menu_classes()](https://developer.wordpress.org/reference/functions/add_menu_classes/)
 * Adds CSS classes for top-level administration menu items.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_menu_classes/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/add_menu_classes/#uses)
   | Source: [wp-admin/includes/menu.php:223](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L223-L271)
 * hook[add_menu_classes](https://developer.wordpress.org/reference/hooks/add_menu_classes/)
 * Filters administration menu array with classes added for top-level items.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/add_menu_classes/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/add_menu_classes/#uses)
   | Source: [wp-admin/includes/menu.php:270](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L270-L270)
 * function[sort_menu()](https://developer.wordpress.org/reference/functions/sort_menu/)
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/sort_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/sort_menu/#uses)
   | Source: [wp-admin/includes/menu.php:319](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L319-L337)
 * hook[_network_admin_menu](https://developer.wordpress.org/reference/hooks/_network_admin_menu/)
 * Fires before the administration menu loads in the Network Admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/_network_admin_menu/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/_network_admin_menu/#uses)
   | Source: [wp-admin/includes/menu.php:19](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/menu.php#L19-L19)