Automatically Cancel Membership After Failed Payment

A healthy membership site means that your gateway and your membership site orders are in perfect sync. Every payment received through the gateway is communicated to the membership site, and all members have accounts in good standing. This guide will explain how a properly configured PMPro site will retry payments, then automatically cancel membership after failed payment.

Banner Graphic for Automatically Cancel Membership After Failed Payment

Delete the WordPress user when a PMPro member cancels

The default setup of Paid Memberships Pro configures all members as users with the default role (under Settings > General) and (selected) membership level. When a user cancels membership, the user’s subscriber account remains and will show up under the Users list in the WordPress Admin. The code recipe below will delete that user account…

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now