Since: 3.1
File: includes/wp-geo.php, includes/shortcodes.php
Param: $show_post_map Where to show map
Param: $api_key Default Google API Key

The wpgeo_google_api_key filter allows you to override the Google API that has been set in the WP Geo settings.

Example

function my_wpgeo_google_api_key( $api_key ) {
	// Return new API Key
	return '85JcPVje98VVn1CFdMRS4IkExSEz1qUoz6w38VVn1CFdMRS4IkExSEz1qU8Y5CA_QTtQ4ZYBAAFI7dhz07jJUklayWkhQwABQIAAeIrZUptL';
}
add_filter( 'wpgeo_google_api_key', 'my_wpgeo_google_api_key' );