-
Notifications
You must be signed in to change notification settings - Fork 16
mc_inner_content
Joe Dolson edited this page May 15, 2026
·
7 revisions
Filter event content inside wrapper.
add_filter(
'mc_inner_content',
function(
{string} $detail,
{object} $event,
{string} $type,
{string} $time
) {
// Your code here.
return $detail;
},
10,
4
);-
{string}$detailHTML with event data. -
{object}$eventMy Calendar event object. -
{string}$typeView type. -
{string}$timeView timeframe.
{string} Returning any non-empty string will shortcircuit template drawing.
apply_filters( 'mc_inner_content', $data[ $field ], $event, $meta_type, '' )apply_filters( 'mc_inner_content', $details, $event, $type, $time )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 )