instructions ) ) { $payment_instructions = $payment_gateway->instructions; } elseif ( ! empty( $payment_gateway->get_option( 'instructions' ) ) ) { // This fix the issue with Invoice Payment in Addon Germanized $payment_instructions = $payment_gateway->get_option( 'instructions' ); } } if ( ! empty( $payment_instructions ) ) : ?>
account_details ) && $direct_bank_transfer === $payment_gateway->get_method_title() ) { // Get the order country and country $locale. $country = ! empty( $order_instance->get_billing_country() ) ? $order_instance->get_billing_country() : ''; $country_locale = $payment_gateway->get_country_locale(); // Get sortcode label in the $locale array and use appropriate one. $sortcode = isset( $locale[ $country ]['sortcode']['label'] ) ? $country_locale[ $country ]['sortcode']['label'] : __( 'Sort code', 'woocommerce' ); $bacs_accounts = apply_filters( 'woocommerce_bacs_accounts', $payment_gateway->account_details, $order_instance->get_id() ); if ( ! empty( $bacs_accounts ) ) { $account_html = ''; $has_details = false; foreach ( $bacs_accounts as $bacs_account ) { $bacs_account = (object) $bacs_account; if ( $bacs_account->account_name ) { $account_html .= '

' . wp_kses_post( wp_unslash( $bacs_account->account_name ) ) . ':

' . PHP_EOL; } $account_html .= ''; }//end foreach if ( $has_details ) { $account_html = PHP_EOL . $account_html; echo wp_kses_post( "
$account_html
" ); } }//end if }//end if ?>