Skip to content

mc_hcard

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter location hcard HTML output.

Auto-generated Example

add_filter(
   'mc_hcard',
    function(
        string $hcard,
        object $event,
        string,
        string,
        string
    ) {
        // Your code here.
        return $hcard;
    },
    10,
    5
);

Parameters

  • string $hcard Formatted HTML output.
  • object $event Event 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

Returns

string Formatted HTML hcard.

Files

apply_filters( 'mc_hcard', $hcard, $event, $address, $map, $source )

← All Hooks

Clone this wiki locally