I'm using wordpress's "Advanced Custom Fields Pro" plugin. I'm trying to use the custom field of Wordpress, but the same asks for the key for the Google API access, I already have the key but I do not know where to put it to use the map! Thank you.
I'm using wordpress's "Advanced Custom Fields Pro" plugin. I'm trying to use the custom field of Wordpress, but the same asks for the key for the Google API access, I already have the key but I do not know where to put it to use the map! Thank you.
You need to add the following code in the functions.php file of your theme:
function my_acf_google_map_api( $api ){
$api['key'] = 'xxx'; // Sua key
return $api;
}
add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');