Created
February 4, 2022 08:15
-
-
Save wpflames/0e1edbbd79eced1aa17a2614f1ac1d8f to your computer and use it in GitHub Desktop.
How to add Google Maps API Key to WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function addGoogleMapsKey($api) { | |
| $api['key'] = 'your_api_key'; | |
| return $api; | |
| } | |
| add_filter('acf/fields/google_map/api', 'addGoogleMapsKey'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment