Rest API:Sorry, you are not allowed to edit this resource.?
-
I,m use woocommerce restapi,
$.post( '/wp-json/wc/v2/products/' + $post_id, {'menu_order': $menu_order}, function (data) { console.log(data); } );
and role is editor;
then wocommerce give me a error:
{"code":"woocommerce_rest_cannot_edit","message":"Sorry, you are not allowed to edit this resource.","data":{"status":401}}
Please help me!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Rest API:Sorry, you are not allowed to edit this resource.?’ is closed to new replies.