WC_Gateway_Cheque::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/cheque/class-wc-gateway-cheque.php

	public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
		if ( $this->instructions && ! $sent_to_admin && 'cheque' === $order->get_payment_method() && $order->has_status( 'on-hold' ) ) {
			echo wp_kses_post( wpautop( wptexturize( $this->instructions ) ) . PHP_EOL );
		}
	}

Top ↑

User Contributed Notes User Contributed Notes

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