Risposte:
Impostare la parent_slugproprietà su null, ad esempio;
add_submenu_page(
null // -> Set to null - will hide menu link
, 'Page Title' // -> Page Title
, 'Menu Title' // -> Title that would otherwise appear in the menu
, 'administrator' // -> Capability level
, 'menu_handle' // -> Still accessible via admin.php?page=menu_handle
, 'page_callback' // -> To render the page
);
Ciò nasconderà la pagina del sottomenu dal collegamento del menu principale (di livello superiore).
Tuttavia, non lo afferma nella voce Codexadd_submenu_page .
Lo afferma ora nella voce del Codice per add_submenu_page(grazie a Ian Dunn).
options.phpper ottenere lo stesso effetto.