acf_field_number::initialize()publicACF 5.0.0

initialize

This function will setup the field type data

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

Хуков нет.

Возвращает

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

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

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

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

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

Код acf_field_number::initialize() ACF 6.0.4

function initialize() {

	// vars
	$this->name     = 'number';
	$this->label    = __( 'Number', 'acf' );
	$this->defaults = array(
		'default_value' => '',
		'min'           => '',
		'max'           => '',
		'step'          => '',
		'placeholder'   => '',
		'prepend'       => '',
		'append'        => '',
	);

}