/** * Gets the attributes for the control. * * @since 1.0.0 * @access public */ public function set_attributes() { parent::set_attributes(); if (!empty($this->struct['toggle_all'])) { $this->attributes['data-toggle-all'] = 'true'; } }
/** * Gets the attributes for the control. * * @since 1.0.0 * @access public */ public function set_attributes() { parent::set_attributes(); $this->attributes['rows'] = '5'; $this->attributes['class'] = 'widefat'; if (!empty($this->struct['rows'])) { $this->attributes['rows'] = $this->struct['rows']; } }
/** * Gets the attributes for the control. * * @since 1.0.0 * @access public */ public function set_attributes() { parent::set_attributes(); $this->attributes['type'] = $this->type; unset($this->attributes['id']); }