Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter('woocommerce_account_menu_items', 'mk_remove_woocomerce_account_menu_items');
function mk_remove_woocomerce_account_menu_items($menu_links) {
if(isset($menu_links['edit-address'])){
unset($menu_links['edit-address']); // Addresses
}
return $menu_links;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment