Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created December 23, 2015 09:07
Show Gist options
  • Save thierrypigot/34fa8cecc6d5dcfc905e to your computer and use it in GitHub Desktop.
Save thierrypigot/34fa8cecc6d5dcfc905e to your computer and use it in GitHub Desktop.
Hook to change map controls for my Beaver plugin.https://github.com/thierrypigot/beaver-builder-googlemaps
function tpbbgmap_custom_map_controls( $controls ) {
$controls['overviewMapControl'] = 'true';
$controls['rotateControl'] = 'true';
$controls['scaleControl'] = 'true';
$controls['scrollwheel'] = 'true';
$controls['width'] = '70%';
return $controls;
}
add_filter( 'bbgmap_map_controls', 'tpbbgmap_custom_map_controls' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment