Wordpress Advanced Custom Fields Pro How to Activate Google Maps

Asked

Viewed 141 times

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 answer

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');

More information

Browser other questions tagged

You are not signed in. Login or sign up in order to post.