I created a settings page that's being displayed in the options menu like this:
add_options_page(
'ATB Event Options',
'ATB Event Options',
'manage_options',
'atb-event-options',
'atb_event_options_display'
);
Instead, I'd like to display it as a menu item under another parent menu with the slug 'mvc_events':
add_submenu_page(
'mvc_events',
'ATB Event Options',
'ATB Event Options',
'manage_options',
'atb-event-options',
'atb_event_options_display'
);
While that does add "ATB Event Options" to my mvc_events menu, it overwrites the first menu item I had there, and the link doesn't even work. The link is generated as blah.dev/wp-admin/atb-event-options.
Any idea what I'm doing wrong?