Last active
August 29, 2015 14:22
-
-
Save dustyf/4bd8aaca0dd3af621fc1 to your computer and use it in GitHub Desktop.
Add menu separator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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