Create and Manage Affiliates by Membership Level Using AffiliateWP

This code recipe creates affiliates or updates the status of existing affiliates based on their membership level when using AffiliateWP.

The affiliate is created after their membership level is changed to the appropriate level (in the recipe, this is level ID 1). When membership is cancelled or expires, the affiliate’s status is changed to “inactive”.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Turn your WooCommerce Store into a Catalog for Non Members 

Prevent non-members from viewing product prices or purchasing products from your WooCommerce store with this Code Recipe

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Set a Member Author’s Posts to Draft When Membership is Cancelled

If you allow guest authors on your membership site as a feature of membership, this recipe will demonstrate how to automatically change their posts’ statuses to “draft” when membership is cancelled.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Allow Authors to View Their Posts Regardless of Membership Level

If you have multiple authors on your membership site, this recipe will override the post’s membership requirements and always let the author view their content (ignoring their current or past membership level).

Remember you can set new members to the “author” role at membership checkout via the methods in this previous article.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Show a Post, Page or Category’s Required Membership Levels in the Dashboard “All” Views

Below are three code recipes that will add a column to the All Posts, All Pages, or Categories screens in the WordPress Dashboard. This is an easy way to see how your content is being restricted for members.

Remember, you can lock posts and pages using the “Require Membership” meta box or lock a category under the Memberships > Membership Levels > Edit Level screen.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

New Report to View Membership Level Changes (Upgrades or Downgrades)

Add a custom report to the Memberships > Reports dashboard that displays a report of your membership site’s upgrades/downgrades.

See this blog post on custom reports to learn how to add the custom code to your site.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Limit the Number of Members by Membership Level

Restrict the number of members that can sign up for a membership level. The recipe adds a setting to your Memberships > Membership Levels > Edit Level admin page where you can set a value for “Maximum Members”. Once that limit is reached, no additional registrations will be allowed.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Allow Members to Favorite Posts using the Favorites Plugin for WordPress

Add a special feature for your members that allows them to mark posts as “Favorites”. Then, show your members their bookmarked posts on the Membership Account page. Below are two code recipes that integrate Paid Memberships Pro with Favorites by Kyle Phillips.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Ask “How did you hear about us?” at Membership Checkout

This code recipe adds a field to ask new members how they were referred to your site via the Register Helper Add On. The member can select the referring source via dropdown or enter a custom “Referred by” value. The field is display in the User Profile and Members List Export for admins only.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Lock Your Entire eCommerce Shop for Members-Only

The code recipes below demonstrate how to restrict your online store to members-only using WooCommerce or Jigoshop. If you’re using a different eCommerce plugin, post a topic in our member forums and we will help you get the restriction in place.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »