How to customize the order statuses used when auto-assigning drivers

When the Delivery Drivers for WooCommerce Pro plugin auto-assigns a driver, it’ll check the order statuses and only assign a driver if the order status is set to Processing.

There’s a filter included that allows you to customize the order statuses used when auto-assigning a driver.

ddwc_pro_assign_drivers_order_statuses

The code snippet below can be copied to your theme functions.php file, and line #15 can be changed to the order status of your choice, for instance “on-hold”.

View all filters for the Delivery Drivers for WooCommerce Pro plugin.