function plt_hide_slashpress_menus() { //Hide the "Settings → SlashPress" menu. remove_submenu_page('options-general.php', 'slashpress-admin'); } add_action('admin_menu', 'plt_hide_slashpress_menus', 10000);
Where do I put this code?