e%2$s to view your order.', 'woocommerce' ), '', '' ) : ''; if ( $verification_required && $verification_permitted ) { $content .= ' ' . esc_html__( 'Alternatively, confirm the email address linked to the order below.', 'woocommerce' ); } $content .= '

'; if ( $verification_required && $verification_permitted ) { $content .= $this->render_verification_form(); } return $content; } /** * Email verification for guest users. * * @return string */ protected function render_verification_form() { // phpcs:ignore WordPress.Security.NonceVerification.Missing $check_submission_notice = ! empty( $_POST ) ? wc_print_notice( esc_html__( 'We were unable to verify the email address you provided. Please try again.', 'woocommerce' ), 'error', [], true ) : ''; return '
' . $check_submission_notice . sprintf( '

', esc_attr( 'verify-email' ), esc_html__( 'Email address', 'woocommerce' ) . ' *' ) . sprintf( '

%3$s

', esc_attr( 'verify-email-submit' ), esc_html__( 'Confirm email and view order', 'woocommerce' ), wp_nonce_field( 'wc_verify_email', '_wpnonce', true, false ), esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ) ) . '
'; } }