Skip to content

mc_map_icon

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

URL to Google Map marker image.

Auto-generated Example

add_filter(
   'mc_map_icon',
    function(
        string $icon,
        object $location,
        string string
    ) {
        // Your code here.
        return $icon;
    },
    10,
    3
);

Parameters

  • string $icon Formatted HTML to be returned.
  • object $location Event or location object containing location information.
  • string string $source 'location'. Event source removed in 3.5. Other variable names: $location

Returns

string URL to icon.

Files

apply_filters( 'mc_map_icon', '//maps.google.com/mapfiles/marker_green.png', $location, 'location' )

← All Hooks

Clone this wiki locally