WordPress at Your Fingertips
function is not described

WC_Gateway_Cheque::email_instructions() public WC 1.0

Add content to the WC emails.

{} It's a method of the class: WC_Gateway_Cheque{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Gateway_Cheque = new WC_Gateway_Cheque();
$WC_Gateway_Cheque->email_instructions( $order, $sent_to_admin, $plain_text );
$order(WC_Order) (required)
Order object.
$sent_to_admin(true|false) (required)
Sent to admin.
$plain_text(true|false)
Email format: plain text or HTML.
Default: false

Code of WC_Gateway_Cheque::email_instructions() WC 5.7.0

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 );
	}
}