Suggestion – add a filter to metabox.php
-
First thanks for the nice and flexible plugin, i try at leas 8-9 and this one fits my requrements. Also congratulations for debeloping in debug mode. Each time i install a plugin and see notices and warnings its goes to trash very soon.
And now my suggestion.
Please add a filter to metabox.php, so other developers be able to center map and set zoom in metaboxchange
$pgm = pronamic_get_google_maps_meta();
to
$pgm = apply_filters('pronamic_google_maps_metabox', pronamic_get_google_maps_meta() );
function bbct_set_default_map_location($pgm) { if( !isset($pgm->latitude) || empty($pgm->latitude) ) { $pgm->latitude = 42.73087427928487; $pgm->zoom = 8; } } add_filter('pronamic_google_maps_metabox', 'bbct_set_default_map_location' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggestion – add a filter to metabox.php’ is closed to new replies.