Use this hook to execute custom code after a user’s membership level is changed or cancelled. This hook passes the new level ID, the user ID of the WordPress user, and the level ID being cancelled (if specified).


do_action( 'pmpro_after_change_membership_level', int $level_id, int $user_id, int $cancel_level );

Parameters

$level_id
int; the level ID being changed to
$user_id
int; the user ID whose level is changing
$cancel_level
int; the level ID of the level being cancelled if specified

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/functions.php

View in Source Code