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.9.5

apply_filters('woocommerce_cod_process_payment_order_status') is found 1 times:

  • /includes/gateways/cod/class-wc-gateway-cod.php line 316
    			 * @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();
    		}