How it Works

When a user purchases membership, they will have the option to “Make a Gift” at checkout. The price they enter will be added the initial payment (amount collected at checkout). The Add On does not adjust any recurring, trial, billing cycle, or expiration settings (although this can be done through custom code).

Video Demo

Installation

  1. Upload the ‘pmpro-donations ‘ directory to the ‘/wp-content/plugins/’ directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Set the “Donation” settings per membership level under Memberships > Settings > Levels > Edit Level.

Donation Only Levels

You can also create a separate level and designate it as “Donation Only”. Existing members can make a one-time donation through this level and their membership will not be changed. If a user without a membership level makes a donation through the “Donation Only” level, they will be assigned that level. We advise sites to not allow access to restricted content for a “Donation Only” level in this type of setup.

“Donation Only” level(s) will still appear on your Membership Levels page. You can hide a level from this page using the Advanced Levels Page Shortcode Add On.

Integrating Donation Data with Membership Confirmation Emails

If you are using the Email Templates Admin Editor Add On, you can use the template variable !!donation!! to add data about a donation amount made during checkout. This variable can only be added to the various “checkout” email templates for the member or the admin as well as the invoice.html template.

Action and Filter Hooks

apply_filters( 'pmpro_donations_invoice_bullets', $bullets, $order );
  • Filter the bullets that the Donations Add On adds to the PMPro Invoice page.
  • $bullets – Array with the bullets that will be shown on the page
  • $order is a MemberOrder for the invoice being viewed

Screenshots

Screenshot of the checkout page where a member can select to “Make a Gift”.
Screenshot of the checkout page where a member can select to “Make a Gift”.
 
Screenshot of the admin settings on the Edit Level page where you can set a heading, maximum price, minimum price, and suggested prices.
Screenshot of the admin settings on the Edit Level page where you can set a heading, maximum price, minimum price, and suggested prices.

This is a Plus Add On.

Plus Add Ons are included in all Plus or higher premium membership plans.