mc_from_date - joedolson/my-calendar GitHub Wiki
Filter the calendar start date.
Auto-generated Example
add_filter(
'mc_from_date',
function(
string $from,
string $to,
array $params
) {
// Your code here.
return $from;
},
10,
3
);
Parameters
string$fromStart date of events shown in main calendar shortcode in formatyyyy-mm-dd.string$toEnding date of current view in formatyyyy-mm-dd.array$paramsCalendar view parameters.
Returns
string
Files
apply_filters( 'mc_from_date', $dates['from'], $dates['to'], $params )