adding plain text email flag to bacs

This commit is contained in:
Patrick Rauland 2014-02-28 16:11:57 -06:00 committed by Coen Jacobs
parent afc1c1e566
commit d3476b8669
1 changed files with 3 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
add_action( 'woocommerce_thankyou_bacs', array( $this, 'thankyou_page' ) );
// Customer Emails
add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10, 2 );
add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10, 3 );
}
/**
@ -218,9 +218,10 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
* @access public
* @param WC_Order $order
* @param bool $sent_to_admin
* @param bool $plain_text
* @return void
*/
public function email_instructions( $order, $sent_to_admin ) {
public function email_instructions( $order, $sent_to_admin, $plain_text ) {
if ( $sent_to_admin || $order->status !== 'on-hold' || $order->payment_method !== 'bacs' ) {
return;