How to Hide the "CookieYes" Admin Menu

function plt_hide_cookie_law_info_menus() {
	//Hide the "CookieYes" menu.
	remove_menu_page('cookie-law-info');
}

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

Where do I put this code?