Свойство | Тип | Описание | |
---|---|---|---|
$option_value | string | The value that is saved in the database when this checkbox field is enabled. |
Метод | Описание | |
---|---|---|
get_label ( ) : string | Get the field label. | |
is_required ( ) : boolean | Whether this field is required. | |
set_option_value ( string $value ) | Modify the option value. | |
set_value_from_input ( array $input = null ) | Load the field value from an input array based on it's name. | |
template ( ) | Underscore template of the field. | |
to_json ( boolean $load ) : array | Returns an array that holds the field data, suitable for JSON representation. |
public is_required ( ) : boolean | ||
Результат | boolean | false |
public set_option_value ( string $value ) | ||
$value | string | New value |
public set_value_from_input ( array $input = null ) | ||
$input | array | (optional) Array of field names and values. Defaults to $_POST |
protected string $option_value | ||
Результат | string |