Closed fabianomoier closed 6 years ago
I tried to register the product I received this error! "Error: No route found that matches the URL and request method [rest_no_route]"
My role was this way. https://pastebin.com/2K6MNfuQ
It needs to be Woocommerce::post('products', $params); (not put)
Woocommerce::post('products', $params);
put
Have a look at the documentation: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-product
I tried to register the product I received this error! "Error: No route found that matches the URL and request method [rest_no_route]"
My role was this way. https://pastebin.com/2K6MNfuQ