How to Hide CookieLegit Admin Menus

function plt_hide_cookielegit_menus() {
	//Hide "Cookie Legit".
	remove_menu_page('cookie-legit');
	//Hide "Cookie Legit → Cookie Legit".
	remove_submenu_page('cookie-legit', 'cookie-legit');
	//Hide "Cookie Legit → Notice settings".
	remove_submenu_page('cookie-legit', 'cookie-legit&s=notice');
	//Hide "Cookie Legit → Pixel settings".
	remove_submenu_page('cookie-legit', 'cookie-legit&s=pixel');
	//Hide "Cookie Legit → Blocking".
	remove_submenu_page('cookie-legit', 'cookie-legit&s=blocking');
}

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

Where do I put this code?