LoginSignup
2
5

More than 5 years have passed since last update.

Advanced Custom Fields Pro 5.4.0-betaでGoogleMapsAPIのKeyを設定する

Posted at

当分GoogleMapフィールド使ってなかったら気付かなくて、なんで動かんのじゃぁと悩むこと数時間。。。

Google Maps field needs setting to add API key - ACF Support #post-40268
上記URLのところに普通に書かれてました。

AdvancedCustomFieldsProの5.4.0-betaをダウンロードしてから以下を書き足せばOK。

PHP
add_filter('acf/settings/google_api_key', function() {
    return 'your-api-key';
});

これをfunctions.phpなりに書いてAPIキーを設定してあげれば管理画面側で動くようになりました。
API Keyはご自身で用意してください。

検索だとMissingKeyMapErrorで大体見つかると思います。

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5