1. Documentation /
  2. Groups WooCommerce /
  3. Memberships /
  4. Legacy Setup

Legacy Setup

The information below is relevant only with the legacy access control mode remnant from Groups 1.x – also see the Migration Guide for details on this and how to upgrade to the current Groups 2.x access control model.

Set up a Premium group

↑ Back to top
Below we are giving an example using a group named Premium and its associated capability premium. Note that you can use any group and capability name, we just use Premium here because it underlines a pretty common use case.

2.1 The Quick Way

This is the recommended way. It generates our Premium group on the fly while you create your protected content. Posts > Add New Go to Posts > Add New, give your new post a title and some content. Now input Premium in the field provided under Access restrictions. Add a new Post Next publish your post and the Access restrictions will show that this post is protected so that members of the Premium group only can view it. Publish the Post Post restricted to the Premium Group

2.2 Step by Step

If you have already created a protect post using the quick way above, you can skip this section and head on to 3. Set up a Premium Membership Product. Another example is provided under 4. Set up a page for “Tutorials” members only Groups > Capabilities Go to Groups > Capabilities and click New Capability. Enter premium in the Capability field and click Add. Add a new Capability Groups > Groups Go to Groups > Groups and click New Group. Enter Premium in the Name field and choose the premium capability, create the group by clicking Add. Add a new Group Go to Groups > Options and choose the premium capability under Access restrictions > Capabilities and click Save at the end of the page. You will now be able to protect your posts with the premium capability. Only members of the Premium group will have access to these. Groups > Options > Access Restrictions > Capabilities

Set up a page for “Tutorials” members only

↑ Back to top
Go to Pages > Add New to create a new page: Add a new Page - Tutorials In the Access restrictions tab enter Tutorials so that the Tutorials group and capability are created automatically and click Publish to create the page. This page is now only accessible to members of the Premium group. If you want to restrict access to a page based on an existing group, select it under Access restrictions. Restricting access to the Tutorials page For more options to protect your content please refer to the Groups Plugin and Groups Documentation.