PHP Class Kirki_Controls_Sortable_Control, kirki

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

Méthodes publiques

Свойство Type Description
$type string The control type.

Méthodes publiques

Méthode Description
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
customize_sanitize ( string $value ) : array Unserialize the setting before saving on DB.
enqueue ( ) Enqueue control related scripts/styles.
to_json ( ) Refresh the parameters passed to the JavaScript via JSON.

Méthodes protégées

Méthode Description
content_template ( ) An Underscore (JS) template for this control's content (but not its container).

Method Details

__construct() public méthode

Supplied $args override class property defaults. If $args['settings'] is not defined, use the $id as the setting ID.
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager Customizer bootstrap instance.
$id string Control ID.
$args array {@see \WP_Customize_Control::__construct}.

content_template() protected méthode

Class variables for this control class are available in the data JS object; export custom variables by overriding {@see \Kirki_Customize_Control::to_json()}.
See also: WP_Customize_Control::print_template()
protected content_template ( )

customize_sanitize() public méthode

Unserialize the setting before saving on DB.
public customize_sanitize ( string $value ) : array
$value string Serialized settings.
Résultat array

enqueue() public méthode

Enqueue control related scripts/styles.
public enqueue ( )

to_json() public méthode

Refresh the parameters passed to the JavaScript via JSON.
public to_json ( )

Property Details

$type public_oe property

The control type.
public string $type
Résultat string