Tribe__Date_Utils::is_all_day( mixed $all_day_value )

Helper method to convert EventAllDay values to a boolean


Parameters

$all_day_value

(mixed) (Required) Value to check for "all day" status. All day values: (true, 'true', 'TRUE', 'yes')


Top ↑

Return

(boolean) Is value considered "All Day"?


Top ↑

Source

File: src/Tribe/Date_Utils.php

		public static function is_all_day( $all_day_value ) {
			$all_day_value = trim( $all_day_value );

			return (
				'true' === strtolower( $all_day_value )
				|| 'yes' === strtolower( $all_day_value )
				|| true === $all_day_value
				|| 1 == $all_day_value
			);
		}