woocommerce_cod_process_payment_order_status filter

Closes #10522
This commit is contained in:
Mike Jolley 2016-03-10 12:30:42 +00:00
parent 726728071b
commit 29d35151a1
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class WC_Gateway_COD extends WC_Payment_Gateway {
$order = wc_get_order( $order_id );
// Mark as processing (payment won't be taken until delivery)
$order->update_status( 'processing', __( 'Payment to be made upon delivery.', 'woocommerce' ) );
$order->update_status( apply_filters( 'woocommerce_cod_process_payment_order_status', 'processing' ), __( 'Payment to be made upon delivery.', 'woocommerce' ) );
// Reduce stock levels
$order->reduce_order_stock();