Vladimir could you guide me on how to do that
I am using the following hooks to add or remove a role(hopefully it will help you)
add_action( ‘gform_subscription_canceled’, ‘canceled_remove_user_role’, 10, 1 );
add_action( ‘gform_post_payment_completed’, ‘process_order_roles’, 10, 2 );
Kind Regards