Skip to content

mc_map_width

Joe Dolson edited this page May 15, 2026 · 4 revisions

Default map width. Default value 100%.

Auto-generated Example

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

Parameters

  • {string} $width Width parameter passed to map container style attribute.
  • {object} $event Event or location object containing location information.

Returns

{string} Value.

Files

apply_filters( 'mc_map_width', '100%', $event )

← All Hooks

Clone this wiki locally