How to Hide Envato Elements Admin Menus

function plt_hide_envato_elements_menus() {
	//Hide "Elements".
	remove_menu_page('envato-elements');
	//Hide "Elements → Welcome".
	remove_submenu_page('envato-elements', 'envato-elements');
	//Hide "Elements → Template Kits".
	remove_submenu_page('envato-elements', 'envato-elements#/template-kits/premium-kits');
	//Hide "Elements → Free Kits".
	remove_submenu_page('envato-elements', 'envato-elements#/template-kits/free-kits');
	//Hide "Elements → Free Blocks".
	remove_submenu_page('envato-elements', 'envato-elements#/template-kits/free-blocks');
	//Hide "Elements → Installed Kits".
	remove_submenu_page('envato-elements', 'envato-elements#/template-kits/installed-kits');
	//Hide "Elements → Photos".
	remove_submenu_page('envato-elements', 'envato-elements#/photos');
	//Hide "Elements → Settings".
	remove_submenu_page('envato-elements', 'envato-elements#/settings');
}

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

Where do I put this code?