function plt_hide_gantry5_menus() { //Hide the "Settings → Gantry 5 Settings" menu. remove_submenu_page('options-general.php', 'g5-settings'); } add_action('admin_menu', 'plt_hide_gantry5_menus', 11);
Where do I put this code?