Skip to content

Instantly share code, notes, and snippets.

@stevengliebe
Last active March 29, 2019 15:41
Show Gist options
  • 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

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