Action to execute custom code for a specific user ID and membership level after the expiration cron event has run.


do_action( 'pmpro_membership_post_membership_expiry', $e->user_id, $e->membership_id );

Parameters

$e->user_id
int; The expiring user’s ID
$e->membership_id
int; The expired user’s cancelled membership level ID

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/scheduled/crons.php

View in Source Code

Related Articles and Recipes

Add a Grace Period to a Membership Level with PMPro By Travis Lima