-
Notifications
You must be signed in to change notification settings - Fork 16
mc_from_date
github-actions[bot] edited this page Jun 21, 2026
·
5 revisions
Filter the calendar start date.
add_filter(
'mc_from_date',
function(
string $from,
string $to,
array $params
) {
// Your code here.
return $from;
},
10,
3
);-
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.
string
apply_filters( 'mc_from_date', $dates['from'], $dates['to'], $params )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )