acf_field_tab::initialize
This function will setup the field type data
Method of the class: acf_field_tab{}
No Hooks.
Returns
n/a.
Usage
$acf_field_tab = new acf_field_tab(); $acf_field_tab->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_tab::initialize() acf field tab::initialize code ACF 6.8.8
function initialize() {
// vars
$this->name = 'tab';
$this->label = __( 'Tab', 'acf' );
$this->category = 'layout';
$this->description = __( 'Allows you to group fields into tabbed sections in the edit screen. Useful for keeping fields organized and structured.', 'acf' );
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-tabs.png';
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/tab/', 'docs', 'field-type-selection' );
$this->supports = array(
'required' => false,
'bindings' => false,
);
$this->defaults = array(
'placement' => 'top',
'endpoint' => 0, // added in 5.2.8
'selected' => 0, // added in 6.3
);
}