Created
May 1, 2020 04:24
-
-
Save robertdevore/6d2bad7c3c26a67cc061ba3c9c302c62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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