tribe_get_datetime_separator( string $default = ' @ ', bool $esc = false )

Get the datetime saparator from the database option with escaped characters or not 😉


Parameters

$default

(string) (Optional) Default Separator if it's blank on the Database

Default value: ' @ '

$esc

(bool) (Optional) If it's going to be used on a date function or method it needs to be escaped

Default value: false


Top ↑

Return

(string)


Top ↑

Source

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

	function tribe_get_datetime_separator( $default = ' @ ', $esc = false ) {
		$separator = (string) tribe_get_option( 'dateTimeSeparator', $default );
		if ( $esc ) {
			$separator = (array) str_split( $separator );
			$separator = ( ! empty( $separator ) ? '\\' : '' ) . implode( '\\', $separator );
		}

		return apply_filters( 'tribe_datetime_separator', $separator );
	}