The web server I have is running on “Localhost” but I haven’t locked down the Maps API, so the site shouldn’t matter.
1) both method 1 and 2 are bugged
2) OR I didn’t put the code in the proper place.
Regarding 2), the documentation should indicate a preferred location of the code to go in functions.php, meaning which functions.php
So either way the docs need a slight change to indicate the preferred location of the two methods (neither method works). It might be nice if the pro/con of each method was mentioned too.
I know the functions are running, as I put them in both .\wp-includes\functions.php as well as .\wp-content\themes\Divi-child\functions.php and promptly got a duplicate function error.
Fatal error: Cannot redeclare my_acf_google_map_api() (previously declared in D:\Webroot\wordpress\wp-includes\functions.php:7407) in D:\Webroot\wordpress\wp-content\themes\Divi-child\functions.php on line 23
Please note this isn’t the problem, it’s just evidence that both method 1 and method 2’s code IS being called (when in only one functions.php).