PHP Class Kirki_Field_Spacing, kirki

Inheritance: extends Kirki_Field_Number
Mostrar archivo Open project: aristath/kirki

Public Methods

Method Description
sanitize ( array $value ) : array Sanitizes the value.

Protected Methods

Method Description
set_choices ( ) Set the choices.
set_js_vars ( ) Sets the $js_vars.
set_sanitize_callback ( ) Sets the $sanitize_callback.
set_type ( ) Sets the control type.

Method Details

sanitize() public method

Sanitizes the value.
public sanitize ( array $value ) : array
$value array The value.
return array

set_choices() protected method

Adds a pseudo-element "controls" that helps with the JS API.
protected set_choices ( )

set_js_vars() protected method

Currentlly postMessage does not work with spacing fields so we have to force using the refresh mode.
protected set_js_vars ( )

set_sanitize_callback() protected method

Sets the $sanitize_callback.
protected set_sanitize_callback ( )

set_type() protected method

Sets the control type.
protected set_type ( )