WPSlash

WooFood Remove Checkout Fields and Rename on WooCommerce

The following sample code snippet will help you remove all the Address fields from both Billing and Shipping Fields . This snippet will also rename the label name from First Name to Table Name


add_filter( 'woocommerce_default_address_fields' , 'wpslash_override_default_address_fields' );
function wpslash_override_default_address_fields( $address_fields ) {

     $address_fields['first_name']['label'] = __('Table Name', 'woocommerce');

	unset( $address_fields['postcode']);
	unset( $address_fields['city']);
	unset( $address_fields['state']);
	unset( $address_fields['company']);
	unset( $address_fields['address_1']);
	unset( $address_fields['address_2']);
	unset( $address_fields['country']);
	unset( $address_fields['postcode']);
       unset( $address_fields['last_name']);

    return $address_fields;
}

The following snippet will remove Email and Phone fields from Checkout

add_filter( 'woocommerce_billing_fields', 'wpslash_remove_billing_fields', 20, 1 );
function wpslash_remove_billing_fields($fields) {
    unset( $fields ['billing_email'] );
	unset( $fields ['billing_phone'] );
    return $fields;
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials

How to Track Restaurant Orders, Revenue, and Customer Behavior with WooCommerce Analytics and Reporting (Complete Guide to Data-Driven Decisions for Food Businesses)

Why Restaurant Analytics Matter: Understanding the Numbers Behind Every Order Running a restaurant without looking at your data is like cooking without tasting your food. You might get lucky, but you’re probably leaving money on the table — and wasting ingredients in the process. For online food ordering businesses, every click, every abandoned cart, and […]
March 29, 2026
Tutorials

How to Set Up Local SEO for Your Restaurant Website: A Complete WordPress Guide to Ranking Higher on Google Maps, Local Search, and Driving More Online Orders

Here’s a stat that should grab your attention: 46% of all Google searches have local intent, and “restaurants near me” is consistently one of the top local search queries worldwide. Yet most independent restaurant owners spend their marketing budgets on social media ads while completely ignoring the one channel that drives hungry, ready-to-order customers directly […]
March 28, 2026
Tutorials

How to Set Up and Manage Multiple Restaurant Locations with WordPress and WooCommerce (Complete Guide to Menus, Delivery Zones, and Centralized Order Management)

Why Multi-Location Restaurant Management Matters (And Why Most Plugins Get It Wrong) Running one restaurant is hard enough. Running two, five, or twenty locations — each with its own menu variations, delivery boundaries, pricing quirks, and kitchen staff — is a whole different beast. And when you try to bring all of that online, most […]
March 28, 2026