Skip to content

Instantly share code, notes, and snippets.

@dustyf
Last active August 29, 2015 14:22
Show Gist options
  • Save dustyf/4bd8aaca0dd3af621fc1 to your computer and use it in GitHub Desktop.
Save dustyf/4bd8aaca0dd3af621fc1 to your computer and use it in GitHub Desktop.
Add menu separator
/**
* Adds a separator in the admin menu to separate our custom menu items.
*/
function add_admin_menu_separator() {
global $menu;
$menu[29] = array(
0 => '',
1 => 'read',
2 => 'separator29',
3 => '',
4 => 'wp-menu-separator'
);
}
add_action( 'admin_menu', 'add_admin_menu_separator' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment