From 6781f052572fb809f292b0a2da5cb07b886942c4 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Thu, 8 Sep 2016 16:57:32 +0200 Subject: [PATCH] Add map_to_name function --- functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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');