woocommerce_cod_process_payment_order_status filter-hook . WC 1.0
Mark as processing or on-hold (payment won't be taken until delivery).
Usage
add_filter( 'woocommerce_cod_process_payment_order_status', 'filter_function_name_3432', 10, 2 ); function filter_function_name_3432( $on-hold, $order ){ // filter... return $on-hold; }
- $on-hold
- -
- $order
- -
Where the hook is called
woocommerce_cod_process_payment_order_status
woocommerce/includes/gateways/cod/class-wc-gateway-cod.php 326
$order->update_status( apply_filters( 'woocommerce_cod_process_payment_order_status', $order->has_downloadable_item() ? 'on-hold' : 'processing', $order ), __( 'Payment to be made upon delivery.', 'woocommerce' ) );