Skip to content

mc_map_height

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

Default map height. Default value 300px.

Auto-generated Example

add_filter(
   'mc_map_height',
    function(
        string $height,
        object $event
    ) {
        // Your code here.
        return $height;
    },
    10,
    2
);

Parameters

  • string $height Height parameter passed to map container style attribute.
  • object $event Event or location object containing location information.

Returns

string Value.

Files

apply_filters( 'mc_map_height', '300px', $event )

← All Hooks

Clone this wiki locally