How to Hide Unlimited Elements for Elementor Admin Menus

function plt_hide_unlimited_elements_for_elementor_menus() {
	//Hide "Unlimited Elements".
	remove_menu_page('unlimitedelements');
	//Hide "Unlimited Elements → Widgets for Elementor".
	remove_submenu_page('unlimitedelements', 'unlimitedelements');
	//Hide "Unlimited Elements → Templates".
	remove_submenu_page('unlimitedelements', 'unlimitedelements_templates_elementor');
	//Hide "Unlimited Elements → General Settings".
	remove_submenu_page('unlimitedelements', 'unlimitedelements_settingselementor');
	//Hide "Unlimited Elements → Affiliation".
	remove_submenu_page('unlimitedelements', 'unlimitedelements-affiliation');
	//Hide "Unlimited Elements → Contact Us".
	remove_submenu_page('unlimitedelements', 'unlimitedelements-contact');
	//Hide "Unlimited Elements → Upgrade".
	remove_submenu_page('unlimitedelements', 'unlimitedelements-pricing');
}

add_action('admin_menu', 'plt_hide_unlimited_elements_for_elementor_menus', 1000000000);

Where do I put this code?