umm_stripe_user_plan_changed

Triggers when the status has changed via Plan Switch

Since 1.0.8
do_action( 'umm_stripe_user_plan_changed', $status, $um_user_id, $role_active, $has_switched_plan_id, $previous_plan_id, $billing_portal_configs )

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.
$billing_portal_configs mixed
Billing Configurations from Stripe API.

Sample Usage

add_action( 'umm_stripe_user_plan_changed', 'um_12202024_stripe_user_plan_changed', 10, 6 );
function um_12202024_stripe_user_plan_changed( $status, $um_user_id, $role_active, $has_switched_plan_id, $previous_plan_id, $billing_portal_configs ){
 // do something
}

Nothing was found