Add map_to_name function
This commit is contained in:
parent
0ac53ba019
commit
6781f05257
1 changed files with 5 additions and 3 deletions
|
|
@ -12,13 +12,15 @@ function td_theme_styles() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// map to name function
|
||||||
|
function map_to_name($element) {
|
||||||
|
return $element['name'];
|
||||||
|
}
|
||||||
|
|
||||||
// Add google API key
|
// Add google API key
|
||||||
function my_acf_google_map_api( $api ){
|
function my_acf_google_map_api( $api ){
|
||||||
|
|
||||||
$api['key'] = 'AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8';
|
$api['key'] = 'AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8';
|
||||||
|
|
||||||
return $api;
|
return $api;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');
|
add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue