How to Hide Cookie and Consent Solution for the GDPR & ePrivacy Admin Menus

function plt_hide_iubenda_cookie_law_solution_menus() {
	//Hide the "iubenda" menu.
	remove_menu_page('iubenda');
	//Hide the "iubenda → Cookie Solution" menu.
	remove_submenu_page('iubenda', 'iubenda');
	//Hide the "iubenda → Consent Solution" menu.
	remove_submenu_page('iubenda', 'iubenda&tab=cons');
}

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

Where do I put this code?