Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
powerbuoy committed Oct 1, 2019
1 parent a3c9d3c commit 42c5a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sleek-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function gmInit (cb) {
# Add Google Maps API Key to ACF
add_action('init', function () {
if ($key = get_setting('google_maps_api_key')) {
add_filter('acf/fields/google_map/api', function ($api) use ($options) {
add_filter('acf/fields/google_map/api', function ($api) use ($key) {
$api['key'] = $key;

return $api;
Expand Down

0 comments on commit 42c5a14

Please sign in to comment.