Tribe__Validate::phone()
validates a field as being a phone number
Source
File: src/Tribe/Validate.php
public function phone() {
if ( preg_match( '/^[0-9\(\)\+ -]+$/', $this->value ) ) {
$this->result->valid = true;
} else {
$this->result->valid = false;
$this->result->error = sprintf( esc_html__( '%s must be a phone number.', 'tribe-common' ), $this->label );
}
}