コード例 #1
0
ファイル: widget-base.php プロジェクト: pojome/elementor
 public function __construct($data = [], $args = [])
 {
     do_action('elementor/element/before_construct', $this, $data, $args);
     do_action('elementor/element/before_construct/' . $this->get_name(), $this, $data, $args);
     parent::__construct($data, $args);
     do_action('elementor/element/after_construct', $this);
     do_action('elementor/element/after_construct/' . $this->get_name(), $this);
     // First instance
     if (!$data) {
         do_action('elementor/widget/' . $this->get_name() . '/before_register_skins', $this);
         $this->_register_skins();
         do_action('elementor/widget/' . $this->get_name() . '/after_register_skins', $this);
     }
 }