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 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
Tutorials

How to Set Up SMS Order Notifications and Automated Text Message Alerts for Your WooCommerce Restaurant (Complete Guide for Owners, Staff, and Customers)

Running a restaurant means dealing with a constant stream of orders, and every minute counts. When a customer places an order online and doesn’t hear anything back, anxiety kicks in. Did the restaurant get my order? Is it being prepared? When will it arrive? SMS notifications solve this problem instantly — a quick text message […]
March 28, 2026
Tutorials

How to Set Up Real-Time Order Tracking and Live Order Status Notifications for Your WooCommerce Restaurant Website (Complete Guide for Pickup and Delivery)

There’s a moment every restaurant customer knows too well — you’ve placed an order online, and now you’re staring at your phone wondering: did they get it? Are they making it? When will it arrive? That uncertainty is more than just annoying. It’s the kind of friction that drives customers to call your restaurant, leave […]
March 27, 2026