Browse: Home / Classes / LearnDash_Settings_Fields_Checkbox_Switch /


LearnDash_Settings_Fields_Checkbox_Switch::rest_value_to_field_value( mixed $val = '',  string $key = '',  array $field_args = array() )

Convert REST submit value to internal Settings Field acceptable value.

Description #

Parameters #


(mixed) (Optional) Value from REST to be converted to internal value.

Default value: ''


(string) (Optional) Key field for value.

Default value: ''


(array) (Optional) Array of field args.

Default value: array()

Source #

File: includes/settings/settings-fields/class-ld-settings-fields-checkbox-switch.php

Changelog #

Version Description
3.3.0 Introduced.