public function __construct($id, $args = array()) { parent::__construct($id, $args); if (!empty($args['category_filter_taxonomy_name'])) { $this->category_filter_taxonomy_name = $args['category_filter_taxonomy_name']; } }
/** * Constructor */ public function __construct($id, $args = array()) { parent::__construct($id, $args); $this->add_max_attribute(); // entry_id $this->add_attribute('entry_id', array('form_control' => 'Text', 'hint' => __('Entry ID - leave empty to use the current entry ID', 'g1_theme'))); }