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 helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.