admin管理员组文章数量:1335647
We are making an application that can make an order from the mobile for Woocommerce API, when I used a loggedin user with token for validate the authentication, its showing error:
Sorry, you cannot view this resource.
But when I am using Administrator, its works. How I can make an other for regular user (non-admin)?
We are making an application that can make an order from the mobile for Woocommerce API, when I used a loggedin user with token for validate the authentication, its showing error:
Sorry, you cannot view this resource.
But when I am using Administrator, its works. How I can make an other for regular user (non-admin)?
Share Improve this question asked Jun 5, 2020 at 4:47 Diep TangDiep Tang 113 bronze badges 1- Hi, welcome to WordPress Development. As a rule, the community considers questions about third-party plugins (such as woocommerce) off-topic so you might notice some down-votes and answers may be slow if they come at all. Have you tried asking the plugin author? You can find out what questions are a good fit here. – Matthew Brown aka Lord Matt Commented Jun 6, 2020 at 15:14
1 Answer
Reset to default 0I found our my solution by customize "woocommerce_rest_check_permissions"
本文标签: Woocommerce REST API allow normal users make an order
版权声明:本文标题:Woocommerce REST API allow normal users make an order 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742364692a2461051.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论