FIX handling google maps api key
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6dddb5dc47
commit
805f861d5e
|
|
@ -19,4 +19,5 @@ require_once(__DIR__ . '/includes/factories.php');
|
||||||
require_once(__DIR__ . '/includes/export-datas.php');
|
require_once(__DIR__ . '/includes/export-datas.php');
|
||||||
require_once(__DIR__ . '/includes/dashboard-widget.php');
|
require_once(__DIR__ . '/includes/dashboard-widget.php');
|
||||||
require_once(__DIR__ . '/includes/gestion.php');
|
require_once(__DIR__ . '/includes/gestion.php');
|
||||||
|
require_once(__DIR__ . '/includes/acf.php');
|
||||||
// require_once(__DIR__ . '/includes/admin-theme.php');
|
// require_once(__DIR__ . '/includes/admin-theme.php');
|
||||||
|
|
|
||||||
20
includes/acf.php
Normal file
20
includes/acf.php
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// HANDLING GOOGLE MAP API KEY
|
||||||
|
function metiers_du_patrimoine_my_acf_init()
|
||||||
|
{
|
||||||
|
acf_update_setting('google_api_key', 'AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk');
|
||||||
|
}
|
||||||
|
|
||||||
|
add_action('acf/init', 'metiers_du_patrimoine_my_acf_init');
|
||||||
|
|
||||||
|
// HANDLING GOOGLE MAP API KEY
|
||||||
|
function metiers_du_patrimoine_my_acf_google_map_api($api)
|
||||||
|
{
|
||||||
|
|
||||||
|
$api['key'] = 'AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk';
|
||||||
|
|
||||||
|
return $api;
|
||||||
|
}
|
||||||
|
|
||||||
|
add_filter('acf/fields/google_map/api', 'metiers_du_patrimoine_my_acf_google_map_api');
|
||||||
Loading…
Reference in New Issue
Block a user