Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Created April 3, 2018 07:35
Show Gist options
  • Save wtmujeebu/3bc5e32b0adbed5ae4f2a12c649b0e0a to your computer and use it in GitHub Desktop.
Save wtmujeebu/3bc5e32b0adbed5ae4f2a12c649b0e0a to your computer and use it in GitHub Desktop.
Hide [CANCEL] button from subscriber’s account - Webtoffee WooCommerce Subscription
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