A well-designed membership cancellation process is key to keeping your customers happy and your operations running smoothly. With Paid Memberships Pro powering your memberships, you’ve got everything you need to handle cancellations, whether they are initiated by the site admin or by a member directly.

As of version 3.0+, members that cancel a recurring membership will have an expiration date set through the end of their prepaid membership term. If you prefer the old logic, this post includes a code recipe to immediately cancel membership when a member uses the Membership Cancel form on your site.

Infographic of: How to Set Up Immediate Cancellations in Paid Memberships Pro

Understanding The Core PMPro Cancellation Processes

Administrator-Initiated Cancellations:

Administrators can cancel a membership directly through the Members > Edit Member > Memberships panel. Navigate to the membership you want to cancel and click the “Cancel” button. This action will immediately cancel the active recurring payment at the payment gateway and immediately remove the membership access. You’ll also get the option to refund the last payment.

Screen shot of website admin screen for cancel membership

Member-Initiated Cancellations:

Members can cancel their own memberships through their Membership Account page. A member will see a “Cancel” link in their account and will be taken to a page to confirm that they indeed want to cancel the membership. By default, this process will immediately cancel the recurring payments at the payment gateway and set the membership to expire on the next payment date. If the member already has an expiration date or is canceling a free level, the membership will be canceled immediately.

About the Code Recipe

This code recipe changes the default cancellation behavior when the member initiates the cancellation.

By returning false on pmpro_cancel_on_next_payment_date, the membership benefits will terminate immediately.

Screenshot of the before the membership is cancelled
Before member canceled Enhanced membership
Screenshot of immediately after the membership is cancelled
After member canceled Enhanced membership
Screenshot of the membership cancellation confirmation screen

The Code Recipe

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo