Skip to content

Instantly share code, notes, and snippets.

@stevengliebe
Last active March 29, 2019 15:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Example from Church Theme Framework of how to get the Church Content plugin's Google Maps API Key.
<?php
function ctfw_google_maps_api_key() {
$key = '';
// Make sure the Church Content plugin's function is available
if ( function_exists( 'ctc_setting' ) ) {
$key = ctc_setting( 'google_maps_api_key' );
}
return apply_filters( 'ctfw_google_maps_api_key', $key );
}
@AOJeff
Copy link

AOJeff commented Mar 29, 2019

Can I ask where I add/edit this code? Trying to fix the issue. Have an API. Want to do this without being forced to upgrade/update the site itself as a whole. Thanks.

@AOJeff
Copy link

AOJeff commented Mar 29, 2019

Also, do not have the Church Content plugin itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment