LLMS_Form_Field::get_defaults()

Get default field settings.


Return Return

(array)


Top ↑

Source Source

File: includes/forms/class-llms-form-field.php

205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
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.
    );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.