public function init()
{
if ($this->shortcode_tag) {
$this->self = get_class($this);
$this->errors = array();
$this->required = array();
// Generate the fields, errors, and requirements
$fields = $this->get_fields();
$defaults = array('btn_close' => esc_html__('Close', 'give'), 'btn_okay' => esc_html__('Insert Shortcode', 'give'), 'errors' => $this->errors, 'fields' => $fields, 'label' => '[' . $this->shortcode_tag . ']', 'required' => $this->required, 'title' => esc_html__('Insert Shortcode', 'give'));
if (user_can_richedit()) {
Give_Shortcode_Button::$shortcodes[$this->shortcode_tag] = wp_parse_args($this->shortcode, $defaults);
}
}
}