submenu functions for the object top-levels

git-svn-id: http://svn.automattic.com/wordpress/trunk@9693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-14 20:53:43 +00:00
parent e7db571b64
commit 5d179b7372
1 changed files with 21 additions and 1 deletions

View File

@ -615,7 +615,7 @@ function add_submenu_page( $parent, $page_title, $menu_title, $access_level, $fi
}
/**
* Add sub menu page to the management main menu.
* Add sub menu page to the tools main menu.
*
* @param string $page_title
* @param unknown_type $menu_title
@ -644,6 +644,26 @@ function add_users_page( $page_title, $menu_title, $access_level, $file, $functi
return add_submenu_page( $parent, $page_title, $menu_title, $access_level, $file, $function );
}
function add_posts_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
return add_submenu_page( 'posts-new.php', $page_title, $menu_title, $access_level, $file, $function );
}
function add_media_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
return add_submenu_page( 'media-new.php', $page_title, $menu_title, $access_level, $file, $function );
}
function add_links_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
return add_submenu_page( 'link-add.php', $page_title, $menu_title, $access_level, $file, $function );
}
function add_pages_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
return add_submenu_page( 'page-new.php', $page_title, $menu_title, $access_level, $file, $function );
}
function add_comments_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $access_level, $file, $function );
}
//
// Pluggable Menu Support -- Private
//