PHP Class Kirki_Values, kirki

Datei anzeigen Open project: aristath/kirki Class Usage Examples

Public Methods

Method Description
get_sanitized_field_value ( array $field ) : string | array Gets the value or fallsback to default.
get_value ( string $config_id = '', string $field_id = '' ) : string | array Get the value of a field.

Method Details

get_sanitized_field_value() public static method

Gets the value or fallsback to default.
public static get_sanitized_field_value ( array $field ) : string | array
$field array The field aruments.
return string | array

get_value() public static method

Get the value of a field.
public static get_value ( string $config_id = '', string $field_id = '' ) : string | array
$config_id string The configuration ID. @see Kirki_Config.
$field_id string The field ID.
return string | array