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, $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
}
Related Snippets
Nothing was found