LLMS_Form_Field::get_defaults()

Get default field settings.


Return Return

(array)


Top ↑

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.
		);

	}


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.