0
I am using the plugin "Advanced Custom Fields Pro" wordpress. I’m trying to use the Custom Wordpress Field, but the same asks the key to access the Google API, I already have the key but do not know where to put to use the map! Thank you.
0
I am using the plugin "Advanced Custom Fields Pro" wordpress. I’m trying to use the Custom Wordpress Field, but the same asks the key to access the Google API, I already have the key but do not know where to put to use the map! Thank you.
1
You need to add the following code below in the file functions.php of its 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');
Browser other questions tagged wordpress google-maps wordpress-plugin
You are not signed in. Login or sign up in order to post.