Sorter

The Sorter field enables the user to specify blocks that can be organized between the Enabled and Disabled columns (by default) or more columns via drag-and-drop elements.

sorter-field

Attributes

AttributesTypeRequiredDescription
idstringRequiredUnique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringOptionalSubtitle display of the option, situated beneath the title.
descstringOptionalDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For Sorter field we set the value sorter
defaultarrayRequiredArray to add more columns, there are 2 columns by default:
enable (type: array) the enabled column.
disable (type: array) the disabled column.
colintOptionalThe proportion of columns that display field on 12 columns per row.

 Example Declaration