WPSlash

Remove Fields from Checkout Page on WooCommerce

Here is a small code snippet to remove the fields you want from the Checkout page on WooCommerce.

Just copy and paste the following snippet inside your functions.php on your child theme .

Note: The below code will actually remove all billing and shipping checkout fields from WooCommerce . Keep only the lines with unset for the fields you want to remove.

add_filter( 'woocommerce_checkout_fields' , 'wpslash_override_checkout_fields' );
  
function wpslash_override_checkout_fields( $fields ) {
    unset($fields['billing']['billing_first_name']);
    unset($fields['billing']['billing_last_name']);
    unset($fields['billing']['billing_company']);
    unset($fields['billing']['billing_address_1']);
    unset($fields['billing']['billing_address_2']);
    unset($fields['billing']['billing_city']);
    unset($fields['billing']['billing_postcode']);
    unset($fields['billing']['billing_country']);
    unset($fields['billing']['billing_state']);
    unset($fields['billing']['billing_phone']);
    unset($fields['shipping']['shipping_first_name']);
    unset($fields['shipping']['shipping_last_name']);
    unset($fields['shipping']['shipping_company']);
    unset($fields['shipping']['shipping_address_1']);
    unset($fields['shipping']['shipping_address_2']);
    unset($fields['shipping']['shipping_city']);
    unset($fields['shipping']['shipping_postcode']);
    unset($fields['shipping']['shipping_country']);
    unset($fields['shipping']['shipping_state']);
    unset($fields['order']['order_comments']);
    unset($fields['billing']['billing_email']);
    unset($fields['account']['account_username']);
    unset($fields['account']['account_password']);
    unset($fields['account']['account_password-2']);

    return $fields;
}

If have are using WooCommerce for you food delivery or pickup needs of your restaurant take a look also on WooFood Plugin .

Leave a Comment

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

Related Articles

Tutorials

How to Integrate Third-Party Delivery Services (DoorDash Drive, Uber Direct, and Stuart) with Your WooCommerce Restaurant Website (Complete Setup Guide)

Running a <a href="https://www.wpslash.com/restaurant-website-ordering-system/" title="Restaurant Website Ordering System: The Ultimate Guide to Effortless Online Orders“>restaurant website on WooCommerce gives you full control over your brand, your menu, and your customer relationships. But there’s always been one nagging challenge: getting the food from your kitchen to the customer’s door without relying on marketplace apps that take […]
March 29, 2026
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