Kirki_Control::__construct PHP Méthode

__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.
        public function __construct($args)
        {
            // Set the $wp_customize property.
            global $wp_customize;
            if (!$wp_customize) {
                return;
            }
            $this->wp_customize = $wp_customize;
            // Set the control types.
            $this->set_control_types();
            // Add the control.
            $this->add_control($args);
        }