How to Hide the "Cookies" Admin Menu

function plt_hide_real_cookie_banner_menus() {
	//Hide the "Cookies" menu.
	remove_menu_page('real-cookie-banner-component');
}

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

Where do I put this code?