Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdados/412cf06fdbf86ba2cef9e900ab95838c to your computer and use it in GitHub Desktop.
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
<?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