axxe16
7/19/2017 - 12:13 PM

API KEY Google per ACF cosa mettere in function.php

API KEY Google per ACF cosa mettere in function.php

<?php
function fix_gmaps_api_key() {
		if(mb_strlen(acf_get_setting("google_api_key")) <= 0){
			acf_update_setting("google_api_key", "AIzaSyDXiH2aFtmW-8TYE2Tyll702wwlwyOsEZQ");
		}
	}
add_action( 'admin_enqueue_scripts', 'fix_gmaps_api_key' );