如何将本机 WooCommerce 身份验证添加到我的自定义 WooCommerce 端点?
我有一个自定义 WC API 端点,我想使用 WooCommerce 身份验证来保护它,即:
my-site.com/wp-json/wc/v3/custom?consumer_key=ck...&consumer_secret=cs...
我将如何实现这一点?我知道 JWT 身份验证,但在这种情况下这是不可接受的。
I have a custom WC API endpoint which I want to protect using WooCommerce authentication, ie:
my-site.com/wp-json/wc/v3/custom?consumer_key=ck...&consumer_secret=cs...
How would I achieve this? I know about JWT authentication but that's not acceptible in this case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个
Try this