WC_Gateway_COD::email_instructions()
Add content to the WC emails.
Метод класса: WC_Gateway_COD{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Gateway_COD = new WC_Gateway_COD(); $WC_Gateway_COD->email_instructions( $order, $sent_to_admin, $plain_text );
- $order(WC_Order) (обязательный)
- Order object.
- $sent_to_admin(true|false) (обязательный)
- Sent to admin.
- $plain_text(true|false)
- Email format: plain text or HTML.
По умолчанию: false
Код WC_Gateway_COD::email_instructions() WC Gateway COD::email instructions WC 8.3.1
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 ); } }