function plt_hide_add_smart_app_banner_menus() { //Hide the "Settings → Smart App Banners" menu. remove_submenu_page('options-general.php', 'Smart-App-Banners'); } add_action('admin_menu', 'plt_hide_add_smart_app_banner_menus', 11);
Where do I put this code?