diff --git a/functions.php b/functions.php index ad95153..890d73e 100644 --- a/functions.php +++ b/functions.php @@ -12,13 +12,15 @@ function td_theme_styles() { ); } +// map to name function +function map_to_name($element) { + return $element['name']; +} + // Add google API key function my_acf_google_map_api( $api ){ - $api['key'] = 'AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8'; - return $api; - } add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');