I’ve create an options page called Page Content. There are 3 sub options pages that Page Content is parent to.
The Page Content options page does not have custom fields. It is just the container for the 3 sub options pages.
In the admin the fly out menu displays Page Content even though it is also in the main sidebar menu.
I need to remove the Page Content sub menu since clicking on it takes you to a blank page.
Right now I have:
Page Content
— Page Content
— Home
— Our Resorts
— Vacation Planner
I need it to be:
Page Content
— Home
— Our Resorts
— Vacation Planner
I don’t want to use CSS. Is there a function I can use to remove it?
I’ve tried remove_submenu_page('add-page-content','add-page-content');
but no dice.
I’ve also tried:
add_action( 'admin_init', 'wpse_136058_remove_menu_pages' );
function wpse_136058_remove_menu_pages() {
remove_menu_page( 'admin.php?page=add-page-content' );
}
Nada
Thanks!
Thank you! Did the trick.