0byt3m1n1
Path:
/
var
/
www
/
clients
/
client38
/
web37
/
web
/
wp-content
/
plugins
/
us-core
/
plugins-support
/
[
Home
]
File: acf.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Advanced Custom Fields * * @link https://www.advancedcustomfields.com/ */ if ( ! class_exists( 'ACF' ) ) { return; } // Register Google Maps API key // https://www.advancedcustomfields.com/resources/google-map/ function us_acf_google_map_api( $api ) { // Get the Google Maps API key from the Theme Options $gmaps_api_key = trim( esc_attr( us_get_option( 'gmaps_api_key', '' ) ) ); /* * Set the API key for ACF only if it is not empty, * to prevent possible erase of the same value set in other plugins */ if ( ! empty( $gmaps_api_key ) ) { $api['key'] = $gmaps_api_key; } return $api; } add_filter( 'acf/fields/google_map/api', 'us_acf_google_map_api' );