Linux 软件免费装
Banner图

Role Membership Access for WooCommerce

开发者 jrtwebsolutions
更新时间 2026年9月23日 11:45
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce roles membership access control restrict products

下载

1.0.0 1.1.0

详情介绍:

Role Membership Access for WooCommerce lets you restrict WooCommerce product visibility, purchasing, add-to-cart, cart, and checkout access based on WordPress user roles. You can:

安装:

  1. Upload the plugin folder role-membership-access-for-woocommerce to /wp-content/plugins/.
  2. Activate the plugin via Plugins → Installed Plugins.
  3. Ensure WooCommerce is installed and active.
  4. Configure plugin settings: WooCommerce → Settings → WooRole Access

屏幕截图:

  • Category Allowed Roles field
  • Product Access Mode and Allowed Roles
  • Example blocked message above product title

升级注意事项:

1.1.0 Security hardening release: restricted products can no longer leak through search, the Store API, or a direct page visit when redirect is off. Update recommended for all sites. 1.0.0 Initial release.

常见问题:

I set roles but users can still access. Why?

Check:

  1. Product Access Mode
  2. If it is Inherit, manual roles won’t apply unless Combine/Manual.
  3. Multi-Category Strategy
  4. With Union, another category may allow the user role.
  5. Cache
  6. Clear page cache/object cache.
  7. Variable products
  8. The plugin normalizes variation IDs to parent product, so it should work. Ensure you saved roles on parent product/category.

I can’t see the message/notices on product page.

Some block themes don’t render WooCommerce notices in classic locations. This plugin renders its own inline notice above the product title and includes JS fallback.

Does it support guests (not logged in)?

Yes. Guests are treated as role "guest". If a product is restricted to roles like subscriber/editor, guests are blocked.

Can administrators bypass restrictions?

Yes, administrators are always allowed by default.

更新日志:

1.1.0 1.0.0