function plt_hide_faustwp_menus() { //Hide the "Settings → Faust" menu. remove_submenu_page('options-general.php', 'faustwp-settings'); } add_action('admin_menu', 'plt_hide_faustwp_menus', 1001);
Where do I put this code?