woocommerce_cod_process_payment_order_status

woocommerce_cod_process_payment_order_status

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cod_process_payment_order_status') is found 1 times:

  • /includes/gateways/cod/class-wc-gateway-cod.php line 316
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
         * @since 2.6.0
         *
         * @param string $order_status Default status for COD orders.
         */
        $process_payment_status = apply_filters( 'woocommerce_cod_process_payment_order_status', $order->has_downloadable_item() ? OrderStatus::ON_HOLD : OrderStatus::PROCESSING, $order );
        // Mark as processing or on-hold (payment won't be taken until delivery).
        $order->update_status( $process_payment_status, __( 'Payment to be made upon delivery.', 'woocommerce' ) );
    } else {
        $order->payment_complete();
    }