Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Limit the order statuses where the customer is searched (if not found as a user) on Shop as Client PRO
/* 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 $statuses;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment