Tribe__Validator__Base::is_image_or_empty( int|string $image )
Whether the provided value points to an existing attachment ID, an existing image URL, or is empty.
Contents
Parameters
- $image
-
(int|string) (Required)
Return
(mixed)
Source
File: src/Tribe/Validator/Base.php
public function is_image_or_empty( $image ) {
if ( empty( $image ) ) {
return true;
}
return $this->is_image( $image );
}