Skip to content

Instantly share code, notes, and snippets.

@jamiebrwr
Last active August 29, 2015 14:12
Show Gist options
  • Save jamiebrwr/1ecaaa5f7543570ff3c3 to your computer and use it in GitHub Desktop.
Save jamiebrwr/1ecaaa5f7543570ff3c3 to your computer and use it in GitHub Desktop.
Change the Menu Order
/**
* Changing the Menu Order
*/
function srh_framework_menu_order( $menu_order ) {
return array(
'index.php',
'upload.php',
'edit.php?post_type=page',
'gf_edit_forms',
'separator1', // First separator
'edit.php',
'edit.php?post_type=senior_portraits',
'edit.php?post_type=family_portraits',
'edit.php?post_type=boudoir_photography',
'edit.php?post_type=glamour_photography',
'edit.php?post_type=wedding_photography',
'edit.php?post_type=engagement_sessions',
'edit.php?post_type=personal_projects',
'separator2', // Second separator
'themes.php',
'plugins.php',
'users.php',
'tools.php',
'options-general.php',
'separator-last', // Last separator
);
}
add_filter( 'custom_menu_order', '__return_true' );
add_filter( 'menu_order', 'srh_framework_menu_order' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment