• It would be nice if this plugin can retrieve a Google API key either by filter or from a PHP constant/environment variable (e.g. GOOGLE_API_KEY).
    This makes re-using the same Google Maps API key much easier.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author supsystic

    (@supsysticcom)

    Hi @strarsis.

    We can rewrite API key for Google Maps Easy plugin using hooks.
    If this solution is acceptable for you, let us know and we’ll give you required code for this option.

    Thread Starter strarsis

    (@strarsis)

    @supsystic: Yes, this would work for me.

    Plugin Author supsystic

    (@supsysticcom)

    Hi,@strarsis.

    We’ve already added such possibility to our plugin. You should hang up the handler to the filter “gmp_gRewriteApiKey”:
    add_filter ('gmp_gRewriteApiKey', array ($ this, 'rewriteApiKey'));
    where rewriteApiKey is the name of the function that will return required key to the API key.

    Let me know, if you have additional questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Google Maps API key filter’ is closed to new replies.