Last active
January 17, 2018 09:45
-
-
Save seostudio/f21e4e315981a46798c99fd2b8497595 to your computer and use it in GitHub Desktop.
flexible_checkout_fields_validate_billing_test_validate
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_action( 'flexible_checkout_fields_validate_billing_test_validate', 'flexible_checkout_fields_validate_billing_test_validate' ); | |
function flexible_checkout_fields_validate_billing_test_validate( $value ) { | |
if ( $value != '1' ) { | |
wc_add_notice( 'Test validate must equals 1!', 'error' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment