element_before(); $unit = ( isset( $this->field['unit'] ) ) ? '' . $this->field['unit'] . '' : ''; echo 'element_class() . $this->element_attributes() . '/>' . $unit; echo $this->element_after(); // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped } }