Added new filter to modify order status during orders using cheque as a gateway.

This commit is contained in:
XLPlugins 2018-09-20 19:07:23 +05:30
parent 0566708744
commit e283eff149
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class WC_Gateway_Cheque extends WC_Payment_Gateway {
if ( $order->get_total() > 0 ) {
// Mark as on-hold (we're awaiting the cheque).
$order->update_status( 'on-hold', _x( 'Awaiting check payment', 'Check payment method', 'woocommerce' ) );
$order->update_status( apply_filters( 'woocommerce_cheque_process_payment_order_status', 'on-hold', $order ), _x( 'Awaiting check payment', 'Check payment method', 'woocommerce' ) );
} else {
$order->payment_complete();
}