mc_gmap_html - joedolson/my-calendar GitHub Wiki
Source HTML for generating a map of calendar locations.
Auto-generated Example
add_filter(
'mc_gmap_html',
function(
string $output,
object|array $event
) {
// Your code here.
return $output;
},
10,
2
);
Parameters
string$outputFormatted HTML to be returned.object|array$eventObject or array of objects containing one or more objects with location information.
Returns
string Formatted HTML to be parsed by Google Maps JS.
Files
apply_filters( 'mc_gmap_html', $markers, $event )