wordpress add_submenu_page adds broken link
WordPress is doing exactly what you’re telling it to do. Refer to the Codex entry for add_submenu_page(). The functions arguments are like so: <?php add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function ); ?> So, you’re assigning the same string to $parent_slug and $menu_slug. For obvious reasons, these two need to be different. $parent_slug is the … Read more