Tribe__Validator__Base::is_url_or_empty( string $input )
Whether a string represents a valid array or not.
Contents
Valid means that the string looks like a URL, not that the URL is online and reachable.
Parameters
- $input
-
(string) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_url_or_empty( $input ) {
if ( empty( $input ) ) {
return true;
}
return $this->is_url( $input );
}