最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WooCommerce limited role

programmeradmin0浏览0评论

I'm trying to make a custom Woocommerce role that only has access to the WooCommerce reports. The role needs to be able to see the sales reports, but not edit products or anything else on the website.

I tried creating a custom role, but when logging in with that role, I get this error: Sorry, you are not allowed to access this page.

Here is what I tried:

add_role('woo_limited', 'Woo Limited', array(
  'read' => true,
  'view_woocommerce_reports' => true,
));

Any and all assistance is greatly appreciated!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论