tribe_events_week_get_the_date( boolean $echo = true )
Retrieve the current date in Y-m-d format.
Contents
Parameters
- $echo
-
(boolean) (Optional) Set to false to return the value rather than echo.
Default value: true
Return
(string|void)
Source
File: src/functions/template-tags/week.php
function tribe_events_week_get_the_date( $echo = true ) { $day = tribe_events_week_get_current_day(); $html = apply_filters( 'tribe_events_week_get_the_date', $day['date'] ); if ( $echo ) { echo $html; } else { return $html; } }