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.


Parameters

$image

(int|string) (Required)


Top ↑

Return

(mixed)


Top ↑

Source

File: src/Tribe/Validator/Base.php

	public function is_image_or_empty( $image ) {
		if ( empty( $image ) ) {
			return true;
		}

		return $this->is_image( $image );
	}