Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro

This recipe changes a user’s membership level when they cancel or their subscription expires. After the expiration or cancellation, that user will have no membership level. This code triggers to assign a free default level.

Sites that offer a “free” membership level can use this code to place premium members into the free level after cancellation. Or, you can use this code to assign a hidden membership level so that you can later target these users through winback campaigns and email sequences.

This content requires a premium membership plan.