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 »

Send a Member’s Address Fields to MailChimp

Our MailChimp Integration adds members to assigned lists within your MailChimp account.

This code recipe demonstrates how to include the member’s billing address fields in the data sent to MailChimp. If you are using the Shipping Address Add On, this recipe could be modified to send those fields in place of billing (or see this post for sending other profile info).

mailchimp-address-fields

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Show a Different “Terms of Service” at Checkout Based on Membership Level

This simple code gist allows to you swap the “Terms of Service” message based on the membership level selected at checkout. Just create a unique page for each level’s TOS content, then update the recipe based on your Level ID -> Page ID relationships.

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Award MyCRED Points for Membership Level Checkout

If you’re using MyCRED or considering a system to award users for interacting with your WordPress powered website, this code recipe will set up a custom MyCRED hook to award points when a member signs up for level ID 1.

pmpro_myCRED

You can customize the recipe for your specific point values and level IDs. This may eventually become a full MyCRED Add On for Paid Memberships Pro – so please share a comment if you are interested and some feedback on requested features.

pmpro_myCRED-confirmation

Download MyCRED Plugin Homepage

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Sister Plugin for Addon Packages: Apply Parent Page’s Protection to All Child Pages

If you’re using Addon Packages to sell “à la carte” access to a single page, this sister plugin will extend the page protection to all child pages. If the feature proves popular, it may become a default part of the add on with filter to disable.

If a page’s parent has a price (defined as an “Addon Package”), the page will inherit its parent’s settings and show a default message about the restriction, the price, and a link to checkout.

pmpro_addon_package-restrict-message

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »

Restrict Membership Signup by Country

This code recipe allows you to restrict members in specific countries from signing up.

The restricted countries are defined in a $restricted_countries array of level IDs and country codes (see the $pmpro_currencies array in the plugin file /includes/countries.php for included country codes).

pmpro_restrict-countries

This page requires a PMPro Core Account or higher.

Already have an account? Login Now »

New to this site? Register Now »