acf_field_google_map::initialize() public ACF 5.0.0
__construct
This function will setup the field type data
{} Это метод класса: acf_field_google_map{}
Хуков нет.
Возвращает
n/a.
Использование
$acf_field_google_map = new acf_field_google_map(); $acf_field_google_map->initialize();
- (n/a) (обязательный)
Список изменений
С версии 5.0.0 | Введена. |
Код acf_field_google_map::initialize() acf field google map::initialize ACF 5.9.1
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'
);
}