umm_stripe_user_plan_changed
Triggers when the status has changed via Plan Switch
Since 1.0.8do_action( 'umm_stripe_user_plan_changed', $status, $um_user_id, $role_active, $has_switched_plan_id, $previous_plan_id )
Parameters
$status string
Status name.
$um_user_id integer
the user ID.
$role_active string
the user Role.
$has_switched_plan_id integer
the new plan ID.
$previous_plan_id integer
the previous plan ID.
Sample Usage
add_action( 'umm_stripe_user_plan_changed', 'um_04172024_stripe_user_plan_changed', 10, 5 );
function um_04172024_stripe_user_plan_changed( $status, $um_user_id, $role_active, $has_switched_plan_id, $previous_plan_id ){
// do something
}
Related Snippets
Nothing was found