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 Email Marketing Automation for Your WooCommerce Restaurant: Abandoned Cart Recovery, Post-Order Follow-Ups, and Promotional Campaigns with Mailchimp and AutomateWoo (Complete Guide)

Why Email Marketing Is Essential for WooCommerce Restaurants A customer places an order from your restaurant on a Tuesday night, enjoys the meal, and then… disappears. Not because the food was bad, but because nothing reminded them to come back. This is the reality for most restaurants operating without email marketing automation — and it’s […]
April 6, 2026
Tutorials

How to Speed Up Your WordPress Restaurant Website: Image Optimization, Caching, Database Cleanup, and Core Web Vitals Fixes for Faster Menu Loading and Checkout (Complete Guide)

Why Restaurant Website Speed Matters More Than You Think A hungry customer pulls up your restaurant’s website on their phone during a lunch break. They’ve got maybe 15 minutes to place an order for pickup. Your homepage takes four seconds to load, the menu images trickle in one by one, and the checkout page freezes […]
April 5, 2026
Tutorials

How to Make Your WooCommerce Restaurant Ordering Website ADA Compliant and Accessible: Screen Reader Optimization, Keyboard Navigation, and WCAG 2.1 Guidelines for Online Menus and Checkout (Complete Guide)

Why Accessibility and ADA Compliance Matter for Restaurant Ordering Websites A customer with low vision tries to order dinner from your restaurant website. They navigate to your menu, but their screen reader can’t parse the item names because they’re embedded in images without alt text. The “Add to Cart” button is invisible to keyboard navigation. […]
April 5, 2026