how to make custom sub menu admin wordpress dev
function wpdocs_register_my_custom_submenu_page() { add_submenu_page( 'edit.php', 'Profil', 'Profil', 'manage_options', 'my-custom-submenu-page', 'my_custom_submenu_page_callback', ); } add_action('admin_menu', 'wpdocs_register_my_custom_submenu_page');
how to make custom sub menu admin wordpress dev
Slugs for $parent_slug (first parameter) Dashboard: ‘index.php’ Posts: ‘edit.php’ Media: ‘upload.php’ Pages: ‘edit.php?post_type=page’ Comments: ‘edit-comments.php’ Custom Post Types: ‘edit.php?post_type=your_post_type’ Appearance: ‘themes.php’ Plugins: ‘plugins.php’ Users: ‘users.php’ Tools: ‘tools.php’ Settings: ‘options-general.php’ Network Settings: ‘settings.php’
Source: developer.wordpress.org