Created
June 18, 2015 03:33
-
-
Save tamarazuk/13aaf399c8508087049a to your computer and use it in GitHub Desktop.
WooCommerce Shipwire - Remove notices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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