'; $discount_title = ''; if ( ! empty( $coupon_amount ) ) { $discount_title = ( true === $is_percent ) ? $coupon_amount . '%' : wc_price( $coupon_amount ); } if ( ! empty( $discount_type ) ) { $discount_title .= ' ' . $discount_type; } $discount_title = apply_filters( 'wc_smart_coupons_display_discount_title', $discount_title, $coupon_object ); if ( $discount_title ) { // Not escaping because 3rd party developer can have HTML code in discount title. echo $discount_title; // phpcs:ignore } echo '
'; echo '
' . esc_html( $coupon_code ) . '
'; $show_coupon_description = get_option( 'smart_coupons_show_coupon_description', 'no' ); if ( ! empty( $coupon_description ) && 'yes' === $show_coupon_description ) { echo '
' . esc_html( $coupon_description ) . '
'; } if ( ! empty( $coupon_expiry ) ) { echo '
' . esc_html( $coupon_expiry ) . '
'; } echo '
'; ?>