acf_field_range::initialize
This function will setup the field type data
Method of the class: acf_field_range{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_range = new acf_field_range(); $acf_field_range->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_range::initialize() acf field range::initialize code ACF 6.8.8
function initialize() {
// vars
$this->name = 'range';
$this->label = __( 'Range', 'acf' );
$this->description = __( 'An input for selecting a numerical value within a specified range using a range slider element.', 'acf' );
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-range.png';
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/range/', 'docs', 'field-type-selection' );
$this->defaults = array(
'default_value' => '',
'min' => '',
'max' => '',
'step' => '',
'prepend' => '',
'append' => '',
);
}