Book Image

WooCommerce Cookbook

By : Patrick Rauland
Book Image

WooCommerce Cookbook

By: Patrick Rauland

Overview of this book

Table of Contents (17 chapters)
WooCommerce Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating members-only content


One of the many uses of WooCommerce is to create a membership site. Using a few extra plugins, you can create premium content that's only available to users who have purchased the correct products from your site. The nice thing about this setup is that, if you want your membership site to sell any products, it's really easy to add that functionality, whereas a typical membership plugin will only allow memberships.

Getting ready

You must have WooCommerce Subscriptions, Groups (free-of-charge on WordPress.org), and Groups for WooCommerce (premium, available at WooThemes.com) installed and activated on your site. You should also have a Simple subscription product already created.

How to do it…

We're going to use a free plugin called Groups, which allows us to group our users and restrict content to specific groups. After creating the groups and the content, we'll be connecting a product to a group with Groups for WooCommerce.

  1. In the WordPress admin, click on Groups...