Skip to content

Instantly share code, notes, and snippets.

@mikeschinkel
Created December 21, 2011 01:04
Show Gist options
  • Save mikeschinkel/1504061 to your computer and use it in GitHub Desktop.
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.
<?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