'', 'target' => '_self', 'value' => 'button', 'btn-class' => 'exopite-sof-btn', 'btn-id' => '', ); $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 'field['options']['href'] ) ) { echo 'href="' . $this->field['options']['href'] . '"'; } if ( ! empty( $this->field['options']['btn-id'] ) ) { echo ' id="' . $this->field['options']['btn-id'] . '"'; } echo ' target="' . $this->field['options']['target'] . '"'; echo ' class="' . $this->field['options']['btn-class'] . ' ' . $classes . '"'; echo $this->element_attributes() . '/>' . $this->field['options']['value'] . ''; echo $this->element_after(); } } }