Created
October 8, 2021 10:31
-
-
Save cartimize/30f3ebdf352b69b4b3aa3ef8d8ae85e0 to your computer and use it in GitHub Desktop.
Add custom error for front end validation
This file contains 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
<?php | |
add_filter('cartimize_front_end_parsley_errors', 'cartimize_custom_cartimize_front_end_parsley_errors', 10, 1); | |
function cartimize_custom_cartimize_front_end_parsley_errors( $value ){ | |
$value['parsley_errors']['shipping_address_1']= "Please enter your street address along with your house number"; | |
$value['parsley_errors']['billing_address_1']= "Please enter your street address along with your house number"; | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment