PHP Class Kirki_Field_Checkbox, kirki

Inheritance: extends Kirki_Field
Mostrar archivo Open project: aristath/kirki Class Usage Examples

Public Methods

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

Protected Methods

Method 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 method

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

set_default() protected method

Sets the default value.
protected set_default ( )

set_sanitize_callback() protected method

Sets the $sanitize_callback.
protected set_sanitize_callback ( )

set_type() protected method

Sets the control type.
protected set_type ( )