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:
parent
e7db571b64
commit
5d179b7372
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue