How to Bulk Update User Roles to a Custom Role for Their Membership Level

The Roles for Membership Levels Add On creates a new WordPress User Role for each membership level you have created. This recipe performs a batch update on all members with the Subscriber role to their level’s custom role, ignoring the Administrator role and any other roles you specify to skip.

The code is designed to be a one-time update script for sites that would like to use the Roles Add On on an existing site with members.

How to Bulk Update User Roles to a Custom Role for Their Membership Level

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Limit the Number of Posts Members Can View

Our Limit Post Views Add On allows you to limit post views for non-members. This is a nice way to give users a taste of your content and entice them to become fully-fledged members. But what if you wanted to limit those new members even further to sign up for a higher level in order to view more content? This code recipe will allow you to extend these Add On features to your current members as well. Giving you much more versatility over the Add On.

Upgrade the PMPro Limit Post Views Add On

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Filter the LearnDash Course List to Only Show a Member’s Enrolled Courses

LearnDash includes a shortcode and block to display a list or grid of available courses. This recipe demonstrates how to filter the courses included in the output of the [ld_course_list] shortcode to only show those courses the member can enroll in. This includes courses they are already enrolled in as well as courses that are…

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Award MyCRED Points for Membership

If you’re using MyCRED or considering a system to award users for interacting with your WordPress powered website, this code recipe is for you. The article includes two recipes: one to award points at the initial membership checkout and another to award points with every recurring membership payment made. You can customize the point value…

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Ninja Forms: Add Hidden Field for Membership Level

This recipe demonstrates how to include the user’s membership level in their Ninja Forms submissions. If a user is logged in and has a membership level, this code gist captures that Membership Level and saves it in the submission.

Our updated recipe now offers support for Ninja Forms version 3+ as well as a previous recipe to support Ninja Forms prior versions.

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Add a customized notification banner to alert your members of upcoming expiration.

This code recipe adds a notification banner to remind members that their account will expire within 7 days—or any custom timeframe you would like. You can use the recipes with any WordPress theme, or specifically with a membership site using Memberlite.

Putting Google Analytics to work for your Membership Site

No matter what type of membership site you operate, analytics on what your visitors and members are consuming most can be a huge asset for your marketing and development efforts.

This article will show you how to track “Membership Level” as a custom dimension in Google Analytics by leveraging a WordPress analytics plugin and a custom code recipe (below). Once configured, you will be able to create a custom report in Analytics to show Top Content for non-members and for specific membership levels. Boom.

Insert a “Renew Membership” button via custom shortcode to display a renewal link/button for members.

The code recipe below to creates a renewal button shortcode [pmpro_renew_button] that can be used to insert a “Renew Membership” button on your WordPress site….

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Show a Member’s Level Name in Post Comments

When a member posts a comment on your site, the recipe below will display their Membership Level name following the comment author’s name. This can be useful for many membership sites, specifically sites that have multiple tiers of membership which equate to a member’s status, skill-level or denote a relationship to your company. The author…

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now