woocommerce_validate_phone, $valid, $phone, $country
woocommerce_validate_phone, $valid, $phone, $country
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_validate_phone, $valid, $phone, $country') is found 1 times:
- /includes/class-wc-validation.php line 64
* @param bool $valid Whether the phone number passed the default validation. * @param string $phone The phone number being validated. * @param string|null $country The country code the phone is being validated for, or null if unknown. */ return (bool) apply_filters( 'woocommerce_validate_phone', $valid, $phone, $country ); } /** * Checks for a valid postcode. * * @param string $postcode Postcode to validate.