WC_Gateway_BACS::email_instructions()
Add content to the WC emails.
Метод класса: WC_Gateway_BACS{}
Хуки из метода
Возвращает
null
. Ничего (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.
По умолчанию: false
Код WC_Gateway_BACS::email_instructions() WC Gateway BACS::email instructions WC 8.7.0
public function email_instructions( $order, $sent_to_admin, $plain_text = false ) { /** * Filter the email instructions order status. * * @since 7.4 * @param string $terms The order status. * @param object $order The order object. */ if ( ! $sent_to_admin && 'bacs' === $order->get_payment_method() && $order->has_status( apply_filters( 'woocommerce_bacs_email_instructions_order_status', 'on-hold', $order ) ) ) { if ( $this->instructions ) { echo wp_kses_post( wpautop( wptexturize( $this->instructions ) ) . PHP_EOL ); } $this->bank_details( $order->get_id() ); } }