acf_field_google_map::initializepublicACF 5.0.0

__construct

This function will setup the field type data

Method of the class: acf_field_google_map{}

No Hooks.

Returns

null. Nothing (null).

Usage

$acf_field_google_map = new acf_field_google_map();
$acf_field_google_map->initialize();

Changelog

Since 5.0.0 Introduced.

acf_field_google_map::initialize() code ACF 6.0.4

function initialize() {

	// vars
	$this->name           = 'google_map';
	$this->label          = __( 'Google Map', 'acf' );
	$this->category       = 'jquery';
	$this->defaults       = array(
		'height'     => '',
		'center_lat' => '',
		'center_lng' => '',
		'zoom'       => '',
	);
	$this->default_values = array(
		'height'     => '400',
		'center_lat' => '-37.81411',
		'center_lng' => '144.96328',
		'zoom'       => '14',
	);
}