Skip to content

mc_map_html

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

Source HTML for a single location marker.

Auto-generated Example

add_filter(
   'mc_map_html',
    function(
        string $marker,
        object $location
    ) {
        // Your code here.
        return $marker;
    },
    10,
    2
);

Parameters

  • string $marker Formatted HTML to be returned.
  • object $location Event object containing location information.

Returns

string Formatted HTML to be parsed by Google Maps JS.

Files

apply_filters( 'mc_map_html', $marker, $location )

← All Hooks

Clone this wiki locally