Function Reference: geodir_get_map_api_key

Summary

Returns the Google maps api key.

Package

GeoDirectory

Return Values

(string)
  • Returns the api key.

Change Log

Since: 1.6.4

Filters

‘geodir_google_api_key’ [Line: 1021]

Source File

geodir_get_map_api_key() is located in geodirectory-functions/custom_functions.php [Line: 1011]

Source Code

function geodir_get_map_api_key() {
	$key = get_option( 'geodir_google_api_key' );

	/**
	 * Filter Google maps api key.
	 *
	 * @since 1.6.4
	 *
	 * @param string $key Google maps api key.
	 */
	return apply_filters( 'geodir_google_api_key', $key );
}