'#', 'target' => '_self', 'value' => 'button', 'btn-class' => 'exopite-sof-btn', ); $options = ( ! empty( $this->field['options'] ) ) ? $this->field['options'] : array(); $this->field['options'] = wp_parse_args( $options, $defaults ); } public function output() { $classes = ( isset( $this->field['class'] ) ) ? implode( ' ', explode( ' ', $this->field['class'] ) ) : ''; echo $this->element_before(); echo 'element_attributes() . '/>' . $this->field['options']['value'] . ''; echo $this->element_after(); } } }