Last active
June 28, 2018 11:57
-
-
Save wtmujeebu/75458336a9f342f4ce384deb59699616 to your computer and use it in GitHub Desktop.
Hide user available actions from my-account view subscription page - 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', 'disable_myacc_user_actions', 10, 2); | |
function disable_myacc_user_actions($actions, $subscription) { | |
// unset($actions['cancel']); | |
// unset($actions['suspend']); | |
unset($actions['resubscribe']); | |
return $actions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment