I can’t use your api because i need to modify the query to get specific product.
For anyone encounter this, I’ve looked into the plugin and find a workaround. In ajax called, you need to embed user role in data like
?wholesale_role=wholesale_customer. Then, everything is working.
As a feedback, you can add some sort of filter/action to
class-wwp-wholesale-prices.php Line: 509
so that we can set user role in some condition if it was called by rest api.
-
This reply was modified 1 year, 9 months ago by pokxe.