Пример #1
0
 /**
  * The class constructor
  */
 public function __construct($args)
 {
     // call the parent constructor
     parent::__construct($args);
     /**
      * Apply the 'kirki/control_types' filter to Kirki_Control::$control_types.
      * We can use that to register our own customizer controls and extend Kirki.
      */
     self::$control_types = apply_filters('kirki/control_types', self::$control_types);
     /**
      * Apply the 'kirki/setting_types' filter to Kirki_Control::$control_types.
      * We can use that to register our own setting classes for controls and extend Kirki.
      */
     self::$setting_types = apply_filters('kirki/setting_types', self::$setting_types);
     // Add the control
     $this->add_control($args);
 }