How to Hide WordPress PWA Admin Menus

function plt_hide_wp_pwa_menus() {
	//Hide the "Frontity" menu.
	remove_menu_page('frontity-dashboard');
	//Hide the "Frontity → Dashboard" menu.
	remove_submenu_page('frontity-dashboard', 'frontity-dashboard');
	//Hide the "Frontity → Advanced Settings" menu.
	remove_submenu_page('frontity-dashboard', 'frontity-settings');
}

add_action('admin_menu', 'plt_hide_wp_pwa_menus', 11);

Where do I put this code?