Skip to content

Instantly share code, notes, and snippets.

@seostudio
Last active January 17, 2018 09:45
Show Gist options
  • Save seostudio/f21e4e315981a46798c99fd2b8497595 to your computer and use it in GitHub Desktop.
Save seostudio/f21e4e315981a46798c99fd2b8497595 to your computer and use it in GitHub Desktop.
flexible_checkout_fields_validate_billing_test_validate
<?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