WordPress Advanced Custom Fields Pro How to enable Google Maps

I'm using the "Advanced Custom Fields pro" wordpress plugin. 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 more do not know where I should put to be able to use the map! Thanks.

Author: wDrik, 2018-02-20

1 answers

You need to add the following code below in the functions file.php 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');

More information

 1
Author: Felipe de Farias, 2018-02-22 00:15:07