-
Notifications
You must be signed in to change notification settings - Fork 16
mc_secondary_sort
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Set secondary sort for getting happening events. Default 'event_title ASC'.
add_filter(
'mc_secondary_sort',
function(
string $secondary_sort,
string $context
) {
// Your code here.
return $secondary_sort;
},
10,
2
);-
string$secondary_sortSQL sort column. -
string$contextCurrent function.
string
apply_filters( 'mc_secondary_sort', 'event_title ASC', 'my_calendar_get_events' )apply_filters( 'mc_secondary_sort', 'event_title ASC', 'my_calendar_events_now' )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 )