PHP Class Kirki_Field_Checkbox, kirki

Inheritance: extends Kirki_Field
Afficher le fichier Open project: aristath/kirki Class Usage Examples

Méthodes publiques

Méthode Description
sanitize ( boolean | string $value = null ) : boolean Sanitizes checkbox values.

Méthodes protégées

Méthode Description
set_default ( ) Sets the default value.
set_sanitize_callback ( ) Sets the $sanitize_callback.
set_type ( ) Sets the control type.

Method Details

sanitize() public static méthode

Sanitizes checkbox values.
public static sanitize ( boolean | string $value = null ) : boolean
$value boolean | string The checkbox value.
Résultat boolean

set_default() protected méthode

Sets the default value.
protected set_default ( )

set_sanitize_callback() protected méthode

Sets the $sanitize_callback.
protected set_sanitize_callback ( )

set_type() protected méthode

Sets the control type.
protected set_type ( )