The WooCommerce Subscription plugin is a powerful tool for creating subscription-based products. It allows you to sell monthly, quarterly, or yearly subscriptions and offer your customers the option of changing their plan at any time. The only downside to this plugin is that it automatically includes all options (such as a cancel button) in the customer dashboard. In this post, we will show you how to remove buttons from WooCommerce Subscription subscriber view!
For us, the main use case here is to remove the cancel button, and only have a "suspend" button. This ensures that the subscription will only go on hold. If the customer changes their mind in the future, all they need to do is unsuspend. No need to talk with support.
Simply add this code to Advanced Scripts, Functions.php, or a custom plugin. Use the "Case" lines to remove buttons. Delete the ones that you don't need, un comment out the ones that you do need.