dokan_has_map_api_key()

Description #

This function checks if a map API key is set in dokan settings. It will check for google map and mapbox API key. Returns true if either one is found. Return false if no map API key is found.

Return #

(bool)

Params #

None

Usage #

if ( dokan_has_map_api_key() ) {
    // do something if map api key is set
    // maybe show the map
}

Leave a Reply

Your email address will not be published. Required fields are marked *