How to Hide MxChat Admin Menus

function plt_hide_mxchat_basic_menus() {
	//Hide "MxChat".
	remove_menu_page('mxchat-max');
	//Hide "MxChat → MxChat".
	remove_submenu_page('mxchat-max', 'mxchat-max');
	//Hide "MxChat → Knowledge".
	remove_submenu_page('mxchat-max', 'mxchat-prompts');
	//Hide "MxChat → Transcripts".
	remove_submenu_page('mxchat-max', 'mxchat-transcripts');
	//Hide "MxChat → Actions".
	remove_submenu_page('mxchat-max', 'mxchat-actions');
	//Hide "MxChat → Add Ons".
	remove_submenu_page('mxchat-max', 'mxchat-addons');
	//Hide "MxChat → Pro Upgrade".
	remove_submenu_page('mxchat-max', 'mxchat-activation');
}

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

Where do I put this code?