Home › Forums › Backend Issues (wp-admin) › Google Maps field needs setting to add API key › Reply To: Google Maps field needs setting to add API key
So i had the 5.3.10 version and i added the code to my functions.php
function my_acf_init() {
acf_update_setting('google_api_key', 'your_api_key');
}
add_action('acf/init', 'my_acf_init');
My API key is domain-less, i worked with the temporary fix (changing the key in acf-input.min.js) in the past month and it went fine.
Now i get MissingKeyMapError in wp-admin and i cant use the maps
Updated to 5.4 BETA and its still the same
The “data-key” is just “field_5778e0a4fa700”
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.