LearnDash_Settings_Fields
Class to create the settings field.
Description #
Source #
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |
Methods #
- __construct — Public constructor for class
- add_field_instance — Add field instance by key
- create_section_field — Skeleton function to create the field output.
- field_value_to_rest_value — Convert Settings Field value to REST value.
- get_creation_function_ref — Utility function so we are not hard coding the create/validate member functions in various settings files.
- get_field_attribute_class — Create the HTML output from the field args 'class' attribute.
- get_field_attribute_id — Create the HTML output from the field args 'id' attribute.
- get_field_attribute_input_description — Get Field Attribute Input Description
- get_field_attribute_input_label — Create the HTML output from the field args 'input_label' attribute.
- get_field_attribute_label_before — Create the HTML output from the field args 'input_label_before' attribute.
- get_field_attribute_mask_before — Create the HTML output from the field args 'input_mask_before' attribute.
- get_field_attribute_misc — Create the HTML output from the field args 'attrs' attribute.
- get_field_attribute_name — Create the HTML output from the field args 'name' attribute.
- get_field_attribute_placeholder — Create the HTML output from the field args 'placeholder' attribute.
- get_field_attribute_required — Create the HTML output from the field args 'required' attribute.
- get_field_attribute_type — Create the HTML output from the field args 'type' attribute.
- get_field_attribute_value — Create the HTML output from the field args 'placeholder' attribute.
- get_field_error_message — Get Field Error Message
- get_field_inner_trigger — Get Field Inner-Field Trigger
- get_field_instance — Get field instance by key
- get_field_legend — Create the HTML output from the field args 'legend' attribute.
- get_field_sub_trigger — Get Field Sub-Field Trigger
- get_validation_function_ref — Utility function so we are not hard coding the create/validate member functions in various settings files.
- get_value_function_ref — Utility function so we are not hard coding the create/validate member functions in various settings files.
- rest_value_to_field_value — Convert REST submit value to internal Settings Field acceptable value.
- show_section_field_row — Shows the field row
- show_section_fields — Show all fields in section.
- validate_section_field — Default validation function. Should be overridden in Field subclass.
- value_section_field — Get Settings Field Value.