PHP Class Kirki_Controls_Sortable_Control, kirki

Inheritance: extends Kirki_Customize_Control
显示文件 Open project: aristath/kirki

Public Properties

Property Type Description
$type string The control type.

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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 method

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 method

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

enqueue() public method

Enqueue control related scripts/styles.
public enqueue ( )

to_json() public method

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

Property Details

$type public_oe property

The control type.
public string $type
return string