Home › Forums › Backend Issues (wp-admin) › Google Maps Backend field does not suggest addresses › Reply To: Google Maps Backend field does not suggest addresses
Hi @James,
thank you for the answer. Until now i registered my API like that:
wp_register_script('google-maps', 'https://maps.googleapis.com/maps/api/js?key=MYAPIKEY');
wp_register_script('google-jsapi', 'https://www.google.com/jsapi');
wp_enqueue_script('google-maps');
wp_enqueue_script('google-jsapi');
Now i replaced that with your suggestion (iam using PRO):
function my_acf_init() {
acf_update_setting('google_api_key', 'MYAPIKEY');
}
add_action('acf/init', 'my_acf_init');
I didn’t test it on the online system yet, but on my localhost the frontend now only shows white. :/ Was there anything wrong about my old attempt, respectively what is the acf filter doing?
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.