Skip to content

Instantly share code, notes, and snippets.

@tamarazuk
Created June 18, 2015 03:33
Show Gist options
  • Save tamarazuk/13aaf399c8508087049a to your computer and use it in GitHub Desktop.
Save tamarazuk/13aaf399c8508087049a to your computer and use it in GitHub Desktop.
WooCommerce Shipwire - Remove notices
function sv_wc_shipwire_remove_notice( $message ) {
$shipwire_notices = array(
'Please enter your country to see available shipping rates.',
'Please enter your ZIP Code to see available shipping rates.',
);
if ( in_array( $message, $shipwire_notices ) ) {
$message = '';
}
return $message;
}
add_filter( 'woocommerce_add_success', 'sv_wc_shipwire_remove_notice' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment