Why won't this submenu page show? - My First WordPress Plugin

Starting to build my first plugin and I'm completely puzzled on why the submenu page won't show? The main page shows up, not the subpage.

I've run over the syntax what feels like a million times and I just don't see the gap on what I have here. (Page markup is complete, not shown, I'm just trying to get the menu item to show up.)

/* Create Menu Item */
function core_settings_menu() {

    add_menu_page(
        'Core Settings  Code Manager',
        'Core Settings',
        'manage_options',
        'core-settings-page',
        'core_settings_page_contents',
        'dashicons-superhero',
        90
    );

    add_submenu_page(
        'core-settings-page',
        'Code Snippets',
        'manage-options',
        'core-settings-code-snippets',
        'core_settings_code_snippets_markup'
    );

}

 /* Add Menu To Site */
 add_action( 'admin_menu', 'core_settings_menu' );

Topic add-submenu-page plugin-development customization Wordpress

Category Web


Because the main menu has manage_options but the sub menu has manage-options, it should be _ not -.

Since nobody has the manage-options capability nobody can see that submenu page.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.