How to Hide the "daita AI Agent" Admin Menu

function plt_hide_daita_ai_agent_menus() {
	//Hide the "Settings → daita AI Agent" menu.
	remove_submenu_page('options-general.php', 'daita-ai-agent');
}

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

Where do I put this code?