跳到内容

Product Roles Manager for WooCommerce

v1.0.1

Igor Radovanov · 2026年4月3日 上架

Control WooCommerce product visibility based on user roles. Restrict products and variations to specific user roles.

正在使用
10+
评分
5.0 / 5
累计下载
586
最近更新
2026年6月12日
2 条评价需要 WordPress 5.0+已测试到 7.0.9PHP 7.4+

贡献者

截图

Product visibility settings in the General tab
Product visibility settings in the General tab
Variation-specific role restrictions
Variation-specific role restrictions
Plugin settings page with import/export options
Plugin settings page with import/export options

Product Roles Manager for WooCommerce allows you to control which products are visible to specific user roles. Perfect for wholesale stores, membership sites, or any WooCommerce store that needs role-based product access.

Features

  • Restrict simple products to specific user roles
  • Restrict product variations individually by user role
  • Works with WooCommerce product queries, widgets, and shortcodes
  • Compatible with WooCommerce Blocks and REST API
  • Automatically hides restricted products from related products, upsells, and cross-sells
  • Redirects unauthorized users to 404 when accessing restricted products directly
  • Settings page with import/export functionality
  • Lightweight and performance-optimized with caching

Use Cases

  • Wholesale Stores – Show wholesale-only products to users with a wholesale role
  • Membership Sites – Display exclusive products to premium members only
  • B2B Stores – Restrict certain products to registered business customers
  • Staff Discounts – Show staff-only products to employees

Configuration

Simple Products

  1. Go to Products then Edit Product
  2. Scroll to the Product Data section
  3. In the General tab, find Product Visibility by Role
  4. Select the user roles that should see this product
  5. Leave empty to show the product to all users

Variable Products

  1. Go to Products then Edit Product
  2. Navigate to the Variations tab
  3. Expand any variation
  4. Find Variation Visibility by Role
  5. Select the user roles that should see this variation
  6. Leave empty to show the variation to all users

Plugin Settings

Navigate to WooCommerce then Product Roles Manager to access:

  • Global settings configuration
  • Export settings to JSON file
  • Import settings from JSON file
  • Delete all plugin data

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums