ACFにgoogle maps apiキーを登録

概要

ACFにgoogle maps apiキーを登録

施策

/*-------------------------------------------------------
google maps api key
--------------------------------------------------------*/
function my_acf_google_map_api( $api ){
    $api['key'] = '【goolemaps api keyを代入】';
    return $api;
}

add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');