Skip to main content

fc_checkout_is_valid_phone_number

Type: Filter

Filters whether a checkout phone number passes validation.

Signature​

apply_filters( 'fc_checkout_is_valid_phone_number', $is_valid, $phone_number, $field_key, $field_args );

Parameters​

NameTypeDescription
$is_validboolIs valid.
$phone_numberstringPhone number to validate.
$field_keystringCheckout field key.
$field_argsarrayCheckout field arguments.

Since​

  • 2.0.4

Source: inc/checkout-validation.php