Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2018 14:30
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
[WordPress] Customizing the WordPress Administration Menu (For User Experience)
add_filter('custom_menu_order', 'acme_reorder_admin_menu', 10, 1);
add_filter('menu_order', 'acme_reorder_admin_menu', 10, 1);
* Reorders and cleans up the administration menu to make it more user-friendly.
* @param array $menuOrder The current array of menu items.
* @return array An updated order of the items that correspond to the menu.
* @link
function acme_reorder_admin_menu($menuOrder)
if (!$menuOrder) {
return true;
return array(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment