acf_field_google_map::initialize()publicACF 5.0.0

__construct

This function will setup the field type data

Метод класса: acf_field_google_map{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 5.0.0 Введена.

Код acf_field_google_map::initialize() 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',
	);
}