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 Set Up WooCommerce Restaurant Analytics and Reporting: Track Sales, Popular Menu Items, Customer Behavior, and Peak Ordering Hours (Complete Guide)

Why Restaurant Analytics Matter for Your WooCommerce Ordering Business Running an online restaurant without analytics is like cooking without tasting your food — you might get lucky, but you’re mostly guessing. The restaurants that consistently grow their online ordering revenue share one trait: they make decisions based on data, not hunches. Here’s the problem most […]
April 4, 2026
Tutorials

How to Set Up a Restaurant Table Reservation and Booking System with WordPress and WooCommerce: Accept Online Reservations, Manage Capacity, and Reduce No-Shows (Complete Guide)

Why Your Restaurant Needs an Online Table Reservation System Every missed phone call during a dinner rush is a potential empty table. Every scribbled name in a paper reservation book is a chance for a double-booking disaster. If you’re running a restaurant website on WordPress — especially one already handling online food orders — adding […]
April 3, 2026
Tutorials

How to Manage Multiple Restaurant Locations with WooCommerce: Separate Menus, Delivery Zones, and Unified Reporting for Multi-Branch Food Businesses (Complete Guide)

Why Multi-Location Restaurant Management in WooCommerce Is Challenging (and Worth Solving) Running a single restaurant online is straightforward enough. But the moment you open a second location — or a third, or a fifth — everything multiplies in complexity. Suddenly you’re juggling separate menus where Location A serves a breakfast burrito that Location B doesn’t […]
April 3, 2026