How to Hide the "WP Compress" Admin Menu

function plt_hide_wp_compress_image_optimizer_menus() {
	//Hide the "Settings → WP Compress" menu.
	remove_submenu_page('options-general.php', 'wpcompress');
}

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

Where do I put this code?