跳到内容

Membership & User Roles for WooCommerce (Automatic Role Changer)

v20261121

David Marín Carreño (DaveFX) · 2020年11月17日 上架

Sync user roles with memberships and subscriptions. Grant access on purchase, revoke on expiry, and restrict your store by role.

正在使用
300+
评分
4.3 / 5
累计下载
9,502
最近更新
2026年11月22日
6 条评价需要 WordPress 6.2+已测试到 7.1.5PHP 8.0+

Sync user roles with memberships and subscriptions. Grant access on purchase, revoke on expiry, and restrict your store by role.

Overview

The Membership & User Roles for WooCommerce plugin automates the assignment of user roles based on product purchases. This powerful tool streamlines store management by ensuring users are automatically assigned the appropriate roles, enhancing membership sites, subscription-based models, and more.

It also bridges MemberPress to WordPress roles: a membership’s state drives the role, continuously, so access granted in MemberPress is reflected wherever your site checks roles.

Features

  • Automatically assign roles to users upon product purchase.
  • Integrates seamlessly with WooCommerce.
  • Syncs MemberPress membership state to WordPress roles, continuously — the direction other integrations don’t cover. The free version syncs one membership level.
  • Premium: Supports the definition of different roles for variations in variable products.
  • Premium: Allows defining, per product, a role validity period in days after the purchase, so the role granted in the purchase will be automatically removed after that period.
  • Premium: Supports role management tied to subscription products, supporting WooCommerce Subscriptions, YITH WooCommerce Subscription and WP Swings Subscriptions for WooCommerce.
  • Premium: Allows defining multiple roles per product.
  • Premium: Unlimited MemberPress levels, several roles per membership, and mapping of every membership state (pending, active, suspended, cancelled, expired).
  • Premium: Restricts your store by role — hides products and categories from the catalog and search, denies direct URL access, blocks add-to-cart, and sets per-role prices, payment gateways and shipping methods.
  • Premium: Retroactive sync — a batched admin tool that aligns the roles of members who already existed before the mapping was configured. Safe to re-run.

Configuration

Setting Up Role Assignments

  • Edit a product from your catalog.
  • Choose the role (or several roles PREMIUM) to assign when the product is purchased.
  • Premium: Define a role validity period in days after the purchase.
  • In WooCommerce > Settings > Role Changer you can configure advanced settings to fine-tune role assignments, such as defining if the new role must be added to the user, or if the new role should just replace the previous one.
  • Save changes.

Premium Features

Define Role Validity Periods

The premium version allows defining a role validity period in days after the purchase. The role granted in the purchase will be automatically removed after that period.

Manages roles following the lifecycle of subscription products

The premium version supports advanced functionality for subscription products, supporting WooCommerce Subscriptions, YITH WooCommerce Subscription and WP Swings Subscriptions for WooCommerce, assigning roles based on subscription status:

  • Active: Assigns a role when a subscription is activated.
  • Suspended: Updates the user role if a subscription is suspended, or is waiting for renewal.
  • Cancelled: Removes or changes roles when a subscription ends.

How to Enable

  • Purchase the premium version of the plugin via the official site
  • Upload and activate the premium plugin.
  • Navigate to WooCommerce > Settings > Role Changer.
  • Enable subscription-based role assignments.

Troubleshooting

Common Issues

Issue: Role changes are not applied after purchase.

Solution: Ensure the plugin is activated and configured correctly under WooCommerce > Settings > Role Changer.

Issue: Subscription-based role changes are not working.

Solution: Verify that the premium version is installed and active.

Issue: Conflicts with other plugins.

Solution: Disable other role management plugins to check for compatibility issues.

External services

The plugin assigns roles without any external service. It uses two, and only in the cases described below.

Freemius

Freemius handles licensing, the paid plans and updates of the premium version. Nothing is sent to it unless one of the following happens.

  • You opt in. On activation, an administrator is offered “Allow & Continue” or “Skip”. Skipping sends nothing. Allowing sends that WordPress user’s first name, last name and email address; the site’s homepage URL and title, its language, and the WordPress and PHP versions; the plugin and SDK versions; and, from then on, whether the plugin is active, deactivated or uninstalled. The list of installed plugins and themes (names, slugs, versions, and whether each is active) is sent too unless you switch it off: it is a separate, optional permission on the opt-in screen. No newsletter subscription is requested.
  • You activate a premium licence key. The key, the homepage URL, the plugin and SDK versions, and whether the plugin is active are sent, so the licence can be checked and updates delivered only to the sites you authorise. Sending the site title, language, WordPress and PHP versions, and the plugins and themes list is optional at this point; the plugins and themes list starts switched off.
  • You answer the deactivation survey and later delete the plugin. The survey is shown on deactivation and sent when the plugin is deleted. If you never opted in and tick “Anonymous feedback”, only the reason you chose, up to 128 characters of any text you typed and an anonymous site identifier are sent. If you submit it without ticking that box, the plugin opts you in at that moment and sends everything listed for opting in above. If you skip the survey, nothing is sent.

Once you have opted in or activated a licence, the SDK keeps that information up to date with Freemius periodically. You can opt out later from the plugin’s account page. Freemius’s terms and privacy policy cover what it does with this data.

The “More plugins” section

The “More plugins” section of the plugin’s settings (WooCommerce Settings Products) lists the author’s other plugins. When an administrator opens it, the plugin downloads that list from https://davefx.com/plugins.json, at most once a week (every twelve hours while it cannot be reached, showing a copy bundled with the plugin meanwhile). The request carries no data about the site’s users or its orders, and it identifies itself only as the library that makes it, not by the site’s address. As with any web request, davefx.com’s server receives the IP address of the server making it. Until the section is opened, no request is made. Privacy policy.

Support

For support, visit the plugin support forum.

License

This plugin is distributed under the GNU General Public License v3. For details, refer to the license file included with the plugin.

Credits

Author: David Marín Carreño

Website: https://davefx.com/en/wordpress-plugins

Plums

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

导航

说明

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

© 2026 Plums