The Subscription for WooCommerce plugin allows the subscriber to suspend or cancel a subscription from their My Account page under subscription view in the My Subscription tab. The below code snippet allows you to hide the available actions (Suspend and Cancel) from the subscription view.
To achieve that simply add the below code snippet to the active child theme function.php.
Comments (5)
NorSubs
December 12, 2022
@safwana I can’t seem to get this code to work. Maybe it needs an update. Please look into it. Best regards
Mike
December 16, 2022
Hi there,
We have checked the code and couldn’t find any issues. Kindly recheck the scenario.
Justin k Johnson
June 3, 2021
Works great. I appreciate you taking the time to document this publicly.
Brandon
January 3, 2021
The code that you say is there is not visible. Please add the code as I need to remove the ability for a user to suspend their account
Mark
January 6, 2021
Hi Brandon,
Sorry about that. It’s updated now.