tribe_get_date_option( string $optionName, string $default = '' )

Get a date option.

Retrieve an option value taking care to escape it to preserve date format slashes.


Parameters

$optionName

(string) (Required) Name of the option to retrieve.

$default

(string) (Optional) Value to return if no such option is found.

Default value: ''


Top ↑

Return

(mixed) Value of the option if found


Top ↑

Source

File: src/functions/template-tags/general.php

	function tribe_get_date_option( $optionName, $default = '' ) {
		$value = tribe_get_option( $optionName, $default );

		return Tribe__Date_Utils::unescape_date_format($value);
	}