Created
December 21, 2011 01:04
-
-
Save mikeschinkel/1504061 to your computer and use it in GitHub Desktop.
Example Code showing how to configure a WordPress admin menu using Sunrise Admin Skins.
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
<?php | |
/** | |
* Example Code showing how to configure a WordPress admin menu using Sunrise Admin Skins. | |
* | |
* This code would be put in a plugin or a theme's functions.php file. | |
* | |
* Screenshot: http://screenshots.newclarity.net/skitched-20111220-192421.png | |
* | |
*/ | |
add_filter( 'sr_register_admin_menus', 'mysite_register_admin_menus' ); | |
function mysite_register_admin_menus() { | |
sr_register_admin_menu_section( | |
'dashboard', array( | |
'dashboard' => array( | |
'slug' => 'index.php', | |
), | |
) | |
); | |
sr_register_admin_menu_section( | |
'primary', array( | |
'person' => array( 'options' => array( 'microsite' ) ), | |
'practice-area' => array( 'options' => array( 'microsite' ) ), | |
'our-firm', | |
'career', | |
'page' => array( 'title' => 'Homepage & Others' ), | |
) | |
); | |
sr_register_admin_menu_section( | |
'secondary', array( | |
'publication', | |
'case-study', | |
'news-item', | |
'event', | |
'sidebars' | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment