src/components/Validator.php
private function validate_single( $condition, $value ) {

		$validator = array( $this->validations_class, $condition );

		if ( is_callable( $validator ) ) {
			$result = call_user_func( $validator, $value );
		} else {
			$result = false;
		}

		return (bool) $result;
	}
private function validate_single( $condition, $value ) {

		$validator = array( $this->validations_class, $condition );

		if ( is_callable( $validator ) ) {
			$result = call_user_func( $validator, $value );
		} else {
			$result = false;
		}

		return (bool) $result;
	}
Runs a single validation.

@param string $condition The name of the condition.
@param mixed  $value     The value to validate.

@return bool Whether the validation passes.