Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save celticwebdesign/32fdf98f289ba542588f8bfdbd87f214 to your computer and use it in GitHub Desktop.
Save celticwebdesign/32fdf98f289ba542588f8bfdbd87f214 to your computer and use it in GitHub Desktop.
https://code.tutsplus.com/articles/customizing-your-wordpress-admin--wp-24941
http://stackoverflow.com/questions/11298251/swap-array-values-with-php
function custom_menu_order($menu_ord) {
if (!$menu_ord) return true;
$temp = $menu_ord[3];
$menu_ord[3] = $menu_ord[4];
$menu_ord[4] = $temp;
return $menu_ord;
}
add_filter('custom_menu_order', 'custom_menu_order'); // Activate custom_menu_order
add_filter('menu_order', 'custom_menu_order');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment