How it Works

This add on has two key uses:

  1. It allows you to lock a specific user from making changes to their membership level (including selecting a new level if they currently do not have a level). This may be useful for problem members that repeatedly purchase and cancel membership.
  2. Additionally, you can use this add on to lock a membership level for a specific term. This is useful if you want to restrict members from canceling membership until a required number of installment payments are made.

More Info: Installation | How to Lock a Member | How to Lock a Membership Level | How to View Locked Members | Screenshots


Installation

  1. Upload the ‘pmpro-lock-membership-level’ directory to the ‘/wp-content/plugins/’ directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Add a new page for the “Membership Locked” message and assign it under Memberships > Page settings. This is the page that members will be redirected to when attempting to cancel or change membership.
  4. Add the shortcode [pmpro_membership_locked] to the new page. The shortcode’s only attribute (message) can be used to customize the default message shown.
    [pmpro_membership_locked message="An administrator has locked changes to your membership account."]

How to Lock a Member

  1. Locate the member in the WordPress Users dashboard.
  2. Edit the user profile.
  3. Under “Lock Membership” check the box to restrict the member from changing their membership level.
  4. To view a list of all locked members, navigate to Memberships > Locked Members in the WordPress admin.

Note that a locked member will still 'expire' if there is an expiration date set on their membership account. The member will change to 'no level' or a downgrade level you have specified via custom code upon expiration.


How to Lock a Membership Level for a Specific Term

  1. Edit the membership level on the Memberships > Membership Levels > Edit Membership Level page.
  2. Under “Lock Membership Level Settings”, check the box to lock the membership level.
  3. The level can be set to unlock “Never” or after a specified time period (X days, weeks, months, or years).

Note that this will only apply to new members of the membership level, not existing members. Post to the members forum for support applying a membership level lock to existing members.


How to View Locked Members

  1. Navigate to the Memberships > Members List page in the WordPress admin.
  2. Select “Locked” from the “Show” dropdown.

Screenshots

pmpro-lock-membership_level
Lock a Membership Level forever or for a specific term from the Membership Levels > Edit Level page.


pmpro-lock-membership_user
Lock a user from changing their Membership Level from the Edit User page.