LLMS_Form_Field::get_defaults()
Get default field settings.
Return Return
(array)
Source Source
File: includes/forms/class-llms-form-field.php
protected function get_defaults() { return array( 'attributes' => array(), 'checked' => false, 'columns' => 12, 'classes' => array(), // Or string of space-separated classes. 'data_store' => 'usermeta', // Users or usermeta. 'data_store_key' => '', // Defaults to value passed for "name". 'description' => '', 'default' => '', 'disabled' => false, 'id' => '', 'label' => '', 'label_show_empty' => false, 'last_column' => true, 'match' => '', // Test. 'name' => '', // Defaults to value passed for "id". 'options' => array(), 'options_preset' => '', 'placeholder' => '', 'required' => false, 'selected' => '', // Alias of "default". 'type' => 'text', 'value' => '', 'wrapper_classes' => array(), // Or string of space-separated classes. ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |