Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Created June 14, 2018 06:11
Show Gist options
  • Save wtmujeebu/6016079c963fac6599b4185730a29142 to your computer and use it in GitHub Desktop.
Save wtmujeebu/6016079c963fac6599b4185730a29142 to your computer and use it in GitHub Desktop.
Remove My-Account menu links - WebToffee WooCommerce Subscriptions
add_filter('woocommerce_account_menu_items', 'webtoffee_remove_my_account_links');
function webtoffee_remove_my_account_links($menu_links) {
unset($menu_links['subscriptions']); // Subscriptions
unset($menu_links['payment-methods']); // Payment methods
return $menu_links;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment