Filter: bricks/metabox/show_as_map
Filter: bricks/metabox/show_as_map
Section titled “Filter: bricks/metabox/show_as_map”Determines whether a Meta Box map field should be rendered as a map (using rwmb_meta()) or as raw latitude/longitude coordinates when used in dynamic data.
Parameters
Section titled “Parameters”$show_as_map(bool): Whether to render as a map. Default isfalse(renders coordinates).$field(array): The Meta Box field settings array.$post(WP_Post): The current post object.
Example usage
Section titled “Example usage”add_filter( 'bricks/metabox/show_as_map', function( $show_as_map, $field, $post ) { // Example: Render as map for a specific field ID if ( $field['id'] === 'my_map_field' ) { return true; }
return $show_as_map;}, 10, 3 ); Was this page helpful?