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 Add Real-Time Order Tracking and SMS Notifications to Your WooCommerce Restaurant Website

Why Real-Time Order Tracking Matters for Restaurant Websites Think about the last time you ordered food through DoorDash or Uber Eats. You probably watched that little map update in real time, tracking your driver’s every turn. Now think about what happens when you order from a local restaurant’s website and get… silence. Maybe a confirmation […]
April 17, 2026
FoodMaster (formerly WooFood)

How to Build a Smart Allergen Filter and Nutritional Calculator for Your WooCommerce Restaurant Menu

Why Allergen Filtering and Nutritional Transparency Matter More Than Ever A customer with a severe peanut allergy stares at your online menu, trying to figure out which dishes are safe. If they can’t find that information within seconds, they’ll close the tab and order from a competitor who makes it obvious. That scenario plays out […]
April 16, 2026
FoodMaster (formerly WooFood)

How to Build a Custom Restaurant Menu with Allergen Filters, Nutritional Info, and Dietary Labels in WooCommerce: Vegan, Gluten-Free, Keto, and Halal Tags for a Better Customer Experience (Complete Guide)

Why Allergen Information and Dietary Labels Matter for Your Restaurant Website A customer with a severe peanut allergy lands on your restaurant’s online menu. There’s no allergen information anywhere. They leave — and they’re never coming back. That lost sale is just the tip of the iceberg. Without clear dietary labeling, you’re losing revenue, risking […]
April 16, 2026