Issue with custom rest api endpoint

[ad_1]

Hi @pokxe,

We have our own API endpoints that you can check here: https://wholesalesuiteplugin.com/kb/wholesale-suite-api/

Can you update your query?

Thread Starter
pokxe

(@pokxe)

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 10 minutes ago by pokxe.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer