public function get_skins(Widget_Base $widget) { $widget_name = $widget->get_name(); if (!isset($this->_skins[$widget_name])) { return false; } return $this->_skins[$widget_name]; }
public function register_widget_type(Widget_Base $widget) { if (is_null($this->_widget_types)) { $this->_init_widgets(); } $this->_widget_types[$widget->get_name()] = $widget; return true; }
public final function add_group_control($group_name, $args = []) { $args['name'] = $this->get_control_id($args['name']); $this->parent->add_group_control($group_name, $args); }
public function __construct($data = [], $args = []) { $this->_widget_name = $args['widget_name']; parent::__construct($data, $args); }