mc_hide_past_dates - joedolson/my-calendar GitHub Wiki
Filter whether past dates are hidden in the initial list view. Dates are only hidden when no date parameters are set in the URL.
Auto-generated Example
add_filter(
'mc_hide_past_dates',
function(
bool $hide_past_dates,
array $params
) {
// Your code here.
return $hide_past_dates;
},
10,
2
);
Parameters
bool$hide_past_datesWhether to hide past dates.array$paramsCurrent view parameters.
Files
apply_filters( 'mc_hide_past_dates', $hide_past_dates, $params )