I have added an admin page in wordpress but i needed it to be hidden.I added the page successfully like this
function add_admin_page()
{
$themename = 'Cesaro';
$page_function = 'admin_page';
add_menu_page($themename." Options", $themename, 'edit_themes', $page_function, 'admin_page');
}
add_action('admin_menu', 'add_admin_page');
To hide it,i looked at its css using firebug and discovered a pattern or so it seems.Pages added in the format i demonstrated have a css id that starts with #toplevel_page_{page_added} so the css id to the page i added is #toplevel_page_admin_page.
I went ahead and did
#toplevel_page_admin_page{
display:none !important;
}
Is this format #toplevel_page_{page added} consistent with all wordpress installations?.