Exemple #1
0
 /**
  * Get a date option.
  *
  * Retrieve an option value taking care to escape it to preserve date format slashes.
  *
  * @category Events
  * @param  string $optionName Name of the option to retrieve.
  * @param string  $default    Value to return if no such option is found.
  *
  * @return mixed Value of the option if found
  */
 function tribe_get_date_option($optionName, $default = '')
 {
     $value = tribe_get_option($optionName, $default);
     return Tribe__Date_Utils::unescape_date_format($value);
 }