Skip to content

Instantly share code, notes, and snippets.

@mustardBees
Last active September 3, 2018 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustardBees/11d42baed64d85cd8e40a4bbde6a4999 to your computer and use it in GitHub Desktop.
Save mustardBees/11d42baed64d85cd8e40a4bbde6a4999 to your computer and use it in GitHub Desktop.
<?php
$cmb->add_field( array(
'name' => 'Location',
'desc' => 'Drag the marker to set the exact location',
'id' => $prefix . 'location',
'type' => 'pw_map',
// 'split_values' => true, // Save latitude and longitude as two separate fields
// 'api_key' => 'KEY', // Google API Key
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment