コード例 #1
0
function register_lms_menu_page()
{
    $settings = lms_settings::init();
    add_menu_page(__('Learning Management System', 'vibe-customtypes'), __('LMS', 'vibe-customtypes'), 'edit_posts', 'lms', 'vibe_lms_dashboard', '', 7);
    add_submenu_page('lms', __('Statistics', 'vibe-customtypes'), __('Statistics', 'vibe-customtypes'), 'edit_posts', 'lms-stats', 'vibe_lms_stats');
    add_submenu_page('lms', __('Settings', 'vibe-customtypes'), __('Settings', 'vibe-customtypes'), 'manage_options', 'lms-settings', array($settings, 'vibe_lms_settings'));
    add_submenu_page('lms', __('Lms Tree', 'vibe-customtypes'), __('Lms Tree', 'vibe-customtypes'), 'manage_options', 'lms-tree', array($settings, 'vibe_lms_tree'));
    //admin.php?page=lms
    // add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function )
}