Skip to content

Instantly share code, notes, and snippets.

@stevengliebe
Last active March 29, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevengliebe/f3600af3bb0a51d8911db48b72e7b226 to your computer and use it in GitHub Desktop.
Save stevengliebe/f3600af3bb0a51d8911db48b72e7b226 to your computer and use it in GitHub Desktop.
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