Add map_to_name function

This commit is contained in:
Markus Ankenbrand 2016-09-08 16:57:32 +02:00
parent 0ac53ba019
commit 6781f05257

View file

@ -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');