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 »

Hide “Discount Code” field on Membership Checkout for Free or Specified Levels

If your membership site makes use of discount codes, the fields to enter a code will appear on the membership checkout page for all levels. Use the code recipe below to hide these fields for a free membership level checkout or for specific levels you don’t offer discounts for.

pmpro_hide-discount-code-free-level

But wait, why don’t you just do this automatically?

Some people make use of the Discount Codes in unique ways – even for their “free” levels. For example, we have one customer using these codes as “Invoice Numbers” that are mapped to a specific dollar amount. The member selects the “level” which has no fee, but enters the provided “code” to pay their amount owed. Or, some use discount codes to extend a free trial period.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Database Script: Apply a membership level to all users without a level

This advanced code recipe contains a SQL script to run against your WordPress site’s database. You can use Adminer, phpMyAdmin, or your host’s MySQL management tool of choice to execute the query.

The script will apply a membership level (by ID) and expiration (optional) to all users in the wp_users table that do not already have a membership level. This is useful for sites that already have a large number of “users” that you would like to be placed into a default membership level or a grandfathered-in membership level from an older system.

For more advanced bulk member update or import features, see our Import Users from CSV Add On.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Show Members Reports on the WordPress Admin Dashboard

The WordPress Dashboard is the administrator’s first view after login. This code recipe demonstrates how to include the reports shown under Memberships > Reports on the WP Dashboard.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

New Report to Instantly View Your Refund Rate for Month/Year/All Time

Add a custom report to the Memberships > Reports dashboard that displays your membership site’s refund rate.

pmpro_refund-rate-report

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 »

Lock Posts to Members-Only After Specific Timeframe

Allow public access to your members-only content for a set timeframe. The example below allows all members-only posts to be viewed for 24 hours, after which membership will be required to view.

This recipe is a variation of our previous technique to hide old posts from new members.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Display Your Business Address and VAT Number (optional) on Membership Invoice and Confirmation

Provide members with your business address and VAT Number for tax and recording keeping purposes using this simple code recipe. The recipe will add your information to the Membership Invoice screen and print views, as well as the Membership Confirmation page.

pmpro-business-address-invoice

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »