mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://stackoverflow.com/questions/65591559/how-to-remove-shipping-costs-updated-message-in-woocommerce/65592389
10 lines
368 B
Text
10 lines
368 B
Text
function filter_woocommerce_add_notice ( $message ) {
|
|
// Equal to (Must be exactly the same).
|
|
// If the message is displayed in another language, adjust where necessary!
|
|
if ( $message == 'Shipping costs updated.' ) {
|
|
return false;
|
|
}
|
|
|
|
return $message;
|
|
}
|
|
add_filter( 'woocommerce_add_notice', 'filter_woocommerce_add_notice', 10, 1 );
|