Created
January 7, 2020 15:03
-
-
Save webdados/412cf06fdbf86ba2cef9e900ab95838c to your computer and use it in GitHub Desktop.
Limit the order statuses where the customer is searched (if not found as a user) on Shop as Client PRO
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 | |
/* Add this to you (child-)theme functions.php file */ | |
add_filter( 'shop_as_client_pro_search_order_statuses', 'my_shop_as_client_pro_search_order_statuses' ); | |
function my_shop_as_client_pro_search_order_statuses( $statuses ) { | |
//Only for Processing and Completed orders | |
$statuses = array( 'processing', 'completed' ); | |
//Return | |
return $statuses; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment