How to Hide the "FreeDAM Web Notices" Admin Menu

function plt_hide_freedam_web_notices_menus() {
	//Hide the "Settings → FreeDAM Web Notices" menu.
	remove_submenu_page('options-general.php', 'freedam-web-notices');
}

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

Where do I put this code?