Skip to content

Instantly share code, notes, and snippets.

@hslaszlo
Created August 29, 2024 09:14
Show Gist options
  • Save hslaszlo/ed72884c3d9f6aedbf4388479b6921a9 to your computer and use it in GitHub Desktop.
Save hslaszlo/ed72884c3d9f6aedbf4388479b6921a9 to your computer and use it in GitHub Desktop.
Woo remove Customer matched zone notification
<?php
// WooCommerce > Settings > Shipping > Shipping Options -> Debug Mode
// For some reason (probably a plugin conflict), the woocommerce_shipping_debug_mode option would consistently recheck itself
add_action( 'admin_init', 'override_shipping_debug');
function override_shipping_debug(){
update_option('woocommerce_shipping_debug_mode','no');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment