Tribe__Events__Validator__Base::is_timezone_or_empty( string $candidate )
Whether the string is empty or represents a valid PHP timezone.
Contents
Parameters
- $candidate
-
(string) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_timezone_or_empty( $candidate ) {
if ( empty( $candidate ) ) {
return true;
}
return $this->is_timezone( $candidate );
}
Changelog
| Version | Description |
|---|---|
| 4.6.13 | Introduced. |