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