add_dashboard_page()

git-svn-id: http://svn.automattic.com/wordpress/trunk@9760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-18 19:30:50 +00:00
parent 3fc11304a5
commit 19e9168c84
1 changed files with 4 additions and 0 deletions

View File

@ -644,6 +644,10 @@ 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_dashboard_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
return add_submenu_page( 'index.php', $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 );
}