Browse: Home / Classes / LearnDash_Settings_Fields_Checkbox /

LearnDash_Settings_Fields_Checkbox::field_value_to_rest_value

LearnDash_Settings_Fields_Checkbox::field_value_to_rest_value( mixed $val,  string $key,  array $field_args,  WP_REST_Request $request )

Convert Settings Field value to REST value.


Description #


Parameters #

$val

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

$key

(string) (Required) Key field for value.

$field_args

(array) (Required) Array of field args.

$request

(WP_REST_Request) (Required) Request object.


Source #

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


Changelog #

Changelog
Version Description
3.4.1 Introduced.