Last active
March 29, 2019 15:41
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, do not have the Church Content plugin itself.