How to Hide Social Intents - Live Chat and AI Chatbots for ChatGPT, Microsoft Teams, Slack, and Google Admin Menus

function plt_hide_live_chat_support_by_social_intents_menus() {
	//Hide the "Settings → Live Chat" menu.
	remove_submenu_page('options-general.php', 'live-chat-support-by-socialintents');
	//Hide the "Live Chat" menu.
	remove_menu_page('silc_dashboard');
}

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

Where do I put this code?