PHP Class Kirki_Control, kirki

Afficher le fichier Open project: aristath/kirki Class Usage Examples

Protected Properties

Свойство Type Description
$control_types array An array of all available control types.
$wp_customize WP_Customize_Manager The $wp_customize WordPress global.

Méthodes publiques

Méthode Description
__construct ( array $args ) The class constructor.

Méthodes protégées

Méthode Description
add_control ( array $args ) Adds the control.

Private Methods

Méthode Description
get_control_class_name ( array $args ) : string Get the class name of the class needed to create tis control.
set_control_types ( ) Sets the $this->control_types property.

Method Details

__construct() public méthode

Creates the actual controls in the customizer.
public __construct ( array $args )
$args array The field definition as sanitized in Kirki_Field.

add_control() final protected méthode

Adds the control.
final protected add_control ( array $args )
$args array The field definition as sanitized in Kirki_Field.

Property Details

$control_types protected_oe property

An array of all available control types.
protected array $control_types
Résultat array

$wp_customize protected_oe property

The $wp_customize WordPress global.
protected WP_Customize_Manager $wp_customize
Résultat WP_Customize_Manager