Change Error Message
-
This snippet used to work to remove “Billing” from the checkout error message, but doesn’t seem to with PayPal Commerce:
function customize_wc_errors( $error ) {
if ( strpos( $error, 'Billing ' ) !== false ) {
$error = str_replace("Billing ", "", $error);
}
return $error;
}
add_filter( 'woocommerce_add_error', 'customize_wc_errors' );Is there a new filter besides woocommerce_add_error?
There are also new error messages such as, “Unable to create the order due to below errors.” Is there a way to change/remove those with a functions snippet, rather than translation?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change Error Message’ is closed to new replies.