get_meta( '_afridirect_admin_note' ); echo "= " . esc_html( $email_heading ) . " =\n\n"; /* translators: %s: Customer's first name */ echo sprintf( esc_html__( 'Hi %s,', 'afridirect-payment' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n"; /* translators: %s: Order number */ echo sprintf( esc_html__( 'Unfortunately, your payment proof for order #%s has been rejected.', 'afridirect-payment' ), esc_html( $order->get_order_number() ) ) . "\n\n"; if ( $admin_note ) { echo esc_html__( 'Reason:', 'afridirect-payment' ) . "\n"; echo esc_html( $admin_note ) . "\n\n"; } /** * Show order details. */ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); echo "\n" . esc_html__( 'Next Steps:', 'afridirect-payment' ) . "\n"; echo "1. " . esc_html__( 'Please review the reason for rejection above.', 'afridirect-payment' ) . "\n"; echo "2. " . esc_html__( 'Upload a new payment proof that meets the requirements.', 'afridirect-payment' ) . "\n"; echo "3. " . esc_html__( 'Our team will review your new submission.', 'afridirect-payment' ) . "\n\n"; echo esc_html__( 'You can upload a new proof of payment by visiting:', 'afridirect-payment' ) . "\n"; echo esc_url( AfriDirect_Payment_Email_Handler::order_page_url( $order ) ) . "\n\n"; echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; /** * Email footer. */ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound do_action( 'woocommerce_email_footer', $email ); // phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound