WC_Gateway_COD::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
Source Source
File: includes/gateways/cod/class-wc-gateway-cod.php
public function email_instructions( $order, $sent_to_admin, $plain_text = false ) { if ( $this->instructions && ! $sent_to_admin && $this->id === $order->get_payment_method() ) { echo wp_kses_post( wpautop( wptexturize( $this->instructions ) ) . PHP_EOL ); } }