apply_filters( 'fieldOptions', options, editField, option ) → {Object}
Filters the field options.
Structure:
- allFields: All fields available for all field types.
- [fieldType]: The field type specific options. (checkbox, dropdown, toggle, etc.)
- [OptionKey]: This is the option key.
- [type]: How the option should be rendered. (select, radio, toggle)
- [label]: The label of the option.
- [default]: The default value of the option.
- [data]: The data used to render the option.
- [conditions]: The conditions that need to be met for the option to be rendered.
- [OptionKey]: This is the option key.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | All available options. |
editField |
Object | The field being edited. |
option |
Object | The current options. |
Returns:
The field options.
- Type
- Object