WC_Gateway_BACS::email_instructions( WC_Order $order, bool $sent_to_admin, bool $plain_text = false )

Add content to the WC emails.


Description Description


Parameters Parameters

$order

(Required) Order object.

$sent_to_admin

(Required) Sent to admin.

$plain_text

(Optional) Email format: plain text or HTML.

Default value: false


Top ↑

Source Source

File: includes/gateways/bacs/class-wc-gateway-bacs.php

	public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {

		if ( ! $sent_to_admin && 'bacs' === $order->get_payment_method() && $order->has_status( 'on-hold' ) ) {
			if ( $this->instructions ) {
				echo wp_kses_post( wpautop( wptexturize( $this->instructions ) ) . PHP_EOL );
			}
			$this->bank_details( $order->get_id() );
		}

	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.