-
Notifications
You must be signed in to change notification settings - Fork 16
mc_hcard
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Filter location hcard HTML output.
add_filter(
'mc_hcard',
function(
string $hcard,
object $event,
string,
string,
string
) {
// Your code here.
return $hcard;
},
10,
5
);-
string$hcardFormatted HTML output. -
object$eventEvent or location object. -
string$address 'true' to include the location address on the card. Other variable names:$address -
string$map 'true' to include the map link on the card. Other variable names:$map -
string$source 'event' or 'location'. Other variable names:$source
string Formatted HTML hcard.
apply_filters( 'mc_hcard', $hcard, $event, $address, $map, $source )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 )