Tribe__Validate::alpha_numeric()
validates a field as a string containing only letters and numbers
Source
File: src/Tribe/Validate.php
public function alpha_numeric() {
if ( preg_match( '/^[a-zA-Z0-9]+$/', $this->value ) ) {
$this->result->valid = true;
} else {
$this->result->valid = false;
$this->result->error = sprintf( esc_html__( '%s must contain numbers and letters only', 'tribe-common' ), $this->label );
}
}