Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Filter the order statuses used in the Unclaimed Orders table
*
* @url https://www.deviodigital.com/product/delivery-drivers-for-woocommerce-pro/
* @param $statuses array
* @return array
*/
function acme_unclaimed_orders_status_array( $statuses ) {
$statuses = array( 'processing', 'another', 'example' );
return $statuses;
}
add_filter( 'ddwc_pro_driver_dashboard_unclaimed_orders_status_array', 'acme_unclaimed_orders_status_array', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment