Function Reference: geodir_map_name

Summary

Get the map JS API provider name.

Package

GeoDirectory

Return Values

(string)
  • The map API provider name.

Change Log

Since: 1.6.1

Filters

‘geodir_map_name’ [Line: 326]

Source File

geodir_map_name() is located in geodirectory-functions/map-functions/map_functions.php [Line: 313]

Source Code

function geodir_map_name() {
    $geodir_map_name = get_option('geodir_load_map', 'google');
    
    if (!in_array($geodir_map_name, array('none', 'auto', 'google', 'osm'))) {
        $geodir_map_name = 'auto';
    }

    /**
     * Filter the map JS API provider name.
     *
     * @since 1.6.1
     * @param string $geodir_map_name The map API provider name.
     */
    return apply_filters('geodir_map_name', $geodir_map_name);
}