Set a Google Maps API Key.
Parameters
- $api_key
string Google Maps API Key
Changelog
- Introduced in Jetpack 4.1.0
How to use this hook
Notes
You can use this filter to specify a custom Google Maps API key to be used with the Contact Info Widget. Here is an example:
function jeherve_contact_info_google_key() {
return '12345'; // Your API Key.
}
add_filter( 'jetpack_google_maps_api_key', 'jeherve_contact_info_google_key' );
You can get your own API key here.