-
Notifications
You must be signed in to change notification settings - Fork 16
mc_display_host
github-actions[bot] edited this page May 15, 2026
·
4 revisions
Filter the host parameter for a My Calendar view if set as 'current'. Default current user ID.
add_filter(
'mc_display_host',
function(
{int} $user_ID,
string {string}
) {
// Your code here.
return $user_ID;
},
10,
2
);-
{int}$user_IDLogged-in user ID. -
string{string}$context 'today' to indicate themy_calendar_todayshortcode is running. Other variable names:{string} $context 'upcoming' to indicate themy_calendar_upcomingshortcode is running.,{string} $context 'main' to indicate themy_calendarshortcode is running.,$main,$upcoming,$today
{int} Valid author ID.
apply_filters( 'mc_display_host', $user_ID, 'main' )apply_filters( 'mc_display_host', $user_ID, 'upcoming' )apply_filters( 'mc_display_host', $user_ID, 'today' )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 )