WC_Gateway_BACS::email_instructions() public WC 1.0
Add content to the WC emails.
{} Это метод класса: WC_Gateway_BACS{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Gateway_BACS = new WC_Gateway_BACS(); $WC_Gateway_BACS->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.
Код WC_Gateway_BACS::email_instructions() WC Gateway BACS::email instructions WC 5.0.0
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() );
}
}