Hi there,
Any of the fields removed with the Checkout Field Editor extension will also be removed from the My Account page as well.
To remove the Billing Address section from the My Account > Addresses page with PHP, you should be able to use the following:
function my_remove_my_account_billing_address( $addresses, $customer_id ) {
unset($addresses['billing']);
return $addresses;
}
add_filter( 'woocommerce_my_account_get_addresses', 'my_remove_my_account_billing_address', 10, 2 );
That code should be added to your child theme’s functions.php
file or via a plugin that allows custom functions to be added, such as the Code Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php
file as this will be wiped entirely when you update.