Created
April 3, 2018 07:35
-
-
Save wtmujeebu/3bc5e32b0adbed5ae4f2a12c649b0e0a to your computer and use it in GitHub Desktop.
Hide [CANCEL] button from subscriber’s account - Webtoffee WooCommerce Subscription
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('hf_view_subscription_actions', 'hf_hide_cancel_action', 10, 2); | |
function hf_hide_cancel_action($actions, $subscription){ | |
if(isset($actions['cancel'])){ | |
unset($actions['cancel']); | |
} | |
return $actions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment