How to Hide the "Enable CORS" Admin Menu

function plt_hide_enable_cors_menus() {
	//Hide the "Enable CORS" menu.
	remove_menu_page('enable-cors');
}

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

Where do I put this code?