Generic locaties for Google Maps API Key

Support General Generic locaties for Google Maps API KeyResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27960
    info@ceescoenen.nl[email protected]
    Participant

    How can I use different Custom fields for Google Maps and insert the Google API Key once? Now I have to add the key on different locations every time.

    #27969
    Long NguyenLong Nguyen
    Moderator

    Hi Cees,

    It can be done by using the code to create the field. You can create a text field in a settings page to save the Google API key, then when creating the field, just get the option value and assign it to the api_key setting.
    https://docs.metabox.io/fields/map/#sample-code

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.