PHP Class Kirki_Field_Spacing, kirki

Inheritance: extends Kirki_Field_Number
Afficher le fichier Open project: aristath/kirki

Méthodes publiques

Méthode Description
sanitize ( array $value ) : array Sanitizes the value.

Méthodes protégées

Méthode 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 méthode

Sanitizes the value.
public sanitize ( array $value ) : array
$value array The value.
Résultat array

set_choices() protected méthode

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

set_js_vars() protected méthode

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 méthode

Sets the $sanitize_callback.
protected set_sanitize_callback ( )

set_type() protected méthode

Sets the control type.
protected set_type ( )