Last active
December 16, 2019 04:55
-
-
Save iamsathyaseelan/95b8bd9f82fc7bc4ab255387e0c66caf to your computer and use it in GitHub Desktop.
consider following order status as abandoned order
This file contains hidden or 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 | |
add_filter("rnoc_abandoned_cart_invalid_order_statuses","rnoc_invalid_order_status_to_consider_as_abandoned_cart"); | |
if(!function_exists("rnoc_invalid_order_status_to_consider_as_abandoned_car")){ | |
function rnoc_invalid_order_status_to_consider_as_abandoned_cart($invalid_order_status){ | |
/* Replace processing with invalid order status */ | |
$invalid_order_status[] = "processing"; | |
return $invalid_order_status; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment