WordPress Advanced Custom Fields Pro how to activate Google Maps

0

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.

    
asked by anonymous 20.02.2018 / 20:32

1 answer

1

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

More Information

    
22.02.2018 / 01:15