Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Last active June 28, 2018 11:57
Show Gist options
  • Save wtmujeebu/75458336a9f342f4ce384deb59699616 to your computer and use it in GitHub Desktop.
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
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