Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

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

This comment has been minimized.

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
You can’t perform that action at this time.