Advertisement
daymobrew

Send Processing Order email only for BACS

Mar 20th, 2016
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2. add_filter('woocommerce_email_enabled_customer_processing_order', 'bacs_processing_order_email', 10, 2);
  3. function bacs_processing_order_email( $is_enabled, $order) {
  4.   if ($order->payment_method != 'bacs') {
  5.       return false;
  6.   }
  7.   return $is_enabled;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement