Custom filtering of the customers search
I just started playing with you plugin and it's a nice and smart piece of work 🙂
I'm looking at the possibility to filter the customer search.
Each user capable of doing the switch will need have a different list of customers.
The filter will be based on a user meta that customers have in common.
I would have loved a filter on the wp_user_query arguments but there is none.
It looks like I can't override the woocommerce_json_shop_as_customers_search action neither.
What would be the best way to override the query ?