How7o
  • Home
  • Tools
  • Prank Screens
  • Contact
  • Blog
Reading: How to Remove Checkout Fields in WooCommerce
Share
Subscribe Now
How7oHow7o
Font ResizerAa
  • Marketing
  • OS
  • Features
  • Guide
  • Complaint
  • Advertise
Search
  • Home
  • Tools
  • Prank Screens
  • Contact
  • Blog
Follow US
Copyright © 2014-2023 Ruby Theme Ltd. All Rights Reserved.
How7o > Blog > Web Development > How to Remove Checkout Fields in WooCommerce
Web Development

How to Remove Checkout Fields in WooCommerce

how7o
By how7o
Last updated: May 10, 2026
6 Min Read
WooCommerce remove checkout fields — woocommerce_checkout_fields filter unsetting fields
SHARE

To woocommerce remove checkout fields — simplifying checkout by hiding Company Name, Address Line 2, Phone, etc. — hook woocommerce_checkout_fields, unset() the fields you don’t want, and return the array. Works across the four sections WooCommerce exposes: billing, shipping, order, and account. This guide covers the pattern, the full field list, and the “always return the array” gotcha that breaks checkout forms silently.

Contents
  • TL;DR
  • The field map
  • The “always return” gotcha
  • Careful with required fields
  • Making fields optional instead of removing
  • Frequently asked questions
  • Related guides
  • References

Last verified: 2026-04-23 on WooCommerce 9.x with WordPress 6.5. Originally published 2024-03-23, rewritten and updated 2026-04-23.

TL;DR

add_filter( 'woocommerce_checkout_fields', 'how7o_simplify_checkout' );

function how7o_simplify_checkout( $fields ) {
    unset( $fields['billing']['billing_company'] );
    unset( $fields['billing']['billing_address_2'] );
    unset( $fields['billing']['billing_phone'] );

    return $fields;   // ← don't forget this
}

The field map

Everything WooCommerce exposes, grouped by section. Remove what you don’t need:

// Billing section
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['billing']['billing_email'] );

// Shipping section
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'] );

// Order-comments section
unset( $fields['order']['order_comments'] );

// Account section
unset( $fields['account']['account_username'] );
unset( $fields['account']['account_password'] );
unset( $fields['account']['account_password-2'] );

The naming convention is {section}_{field} inside each section’s subarray. For example the billing phone field is $fields['billing']['billing_phone'] — the prefix repeats.

woocommerce remove checkout fields — woocommerce_checkout_fields filter with four sections

The “always return” gotcha

// BROKEN — no return statement
add_filter( 'woocommerce_checkout_fields', function ( $fields ) {
    unset( $fields['billing']['billing_company'] );
    // ← forgot to return $fields
} );

The callback falls off the end and returns null. WooCommerce assigns the filter’s return value to the fields array, and now the checkout tries to render an empty form — customers see a blank page with just a Place Order button. Always return the array:

add_filter( 'woocommerce_checkout_fields', function ( $fields ) {
    unset( $fields['billing']['billing_company'] );
    return $fields;
} );

Careful with required fields

  • billing_email — used for order receipts. Removing it means customers get no email confirmation.
  • billing_first_name / billing_last_name — appears everywhere in the admin (order list, order emails, customer records). Removing leaves blank columns throughout.
  • billing_country, billing_postcode — drive shipping and tax calculations. Removing breaks those for any customer who isn’t in the store’s default location.

The safe removals are billing_company, billing_address_2, billing_phone, order_comments, and the account username/password pair for simplified sign-up. Beyond those, verify the removal doesn’t break a flow you depend on.

Making fields optional instead of removing

add_filter( 'woocommerce_checkout_fields', function ( $fields ) {
    // Keep the field but make it optional
    $fields['billing']['billing_phone']['required'] = false;
    return $fields;
} );

For fields that you want to keep visible but not require, toggle the required key instead of removing. This is the middle ground: customers who want to provide phone can, customers who don’t aren’t blocked from checkout.

Frequently asked questions

What’s the woocommerce remove checkout fields filter?

woocommerce_checkout_fields. It passes an array keyed by section — billing, shipping, order, account — each with field names inside. unset() the ones you don’t want and return the array. Minimum required step: return $fields at the end of the callback. Skipping that returns null and crashes the checkout.

Can I remove required fields like email or first name?

Technically yes, but WooCommerce uses billing email for order receipts and first/last name for order references — removing them will break flows in unexpected places (emails can’t be sent, the admin order list shows blank customer names). Only remove fields that are truly optional for your business. If you need minimal input, hide the fields with CSS instead of removing them server-side.

Does this affect the admin order-edit screen?

No — woocommerce_checkout_fields only affects the customer-facing checkout form. The admin order-edit screen still shows every field. If you want to hide fields from admins too, that’s a separate filter (woocommerce_admin_billing_fields or template overrides).

Why does return at the end matter?

It’s a filter, not an action — WooCommerce uses whatever you return as the new fields array. Forgetting the return (or the return $fields; at the end) makes the filter return null and the whole checkout form renders blank. Always return, even if you’re just modifying in place.

Can I add a field instead of removing?

Yes — the same filter accepts $fields['billing']['billing_vat_number'] = ['label' => ..., 'required' => true, ...]. Adding is harder than removing because you need the full field-config array (see the WooCommerce docs). For simple cases, the woocommerce_after_checkout_billing_form action is easier — echo your input and then read $_POST in woocommerce_checkout_update_order_meta.

Related guides

  • How to Add a Custom Fee in WooCommerce — cart-side customization pair.
  • How to Display Orders Instead of Dashboard on the WooCommerce My Account Page — post-checkout UX.
  • How to Dynamically Change Currency in WooCommerce — checkout display adjacent.
  • How to Add a Link or Button After the Login Form in WooCommerce — similar filter-driven form tweak.

References

WooCommerce woocommerce_checkout_fields docs: woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters.

TAGGED:phpValidationWooCommercewordpress

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article WooCommerce SKU search — posts_search filter injecting SKU-matched product IDs How to Include SKU in WooCommerce Search
Next Article MySQL extract digits from string — REGEXP_REPLACE negation class How to Extract Only the Digits from a String in MySQL
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

FacebookLike
XFollow
PinterestPin
InstagramFollow

Subscribe Now

Subscribe to our newsletter to get our newest articles instantly!
Most Popular
Display PHP errors — ini_set + php.ini configuration
How to Display PHP Errors
May 10, 2026
PHP convert string to uppercase — strtoupper and mb_strtoupper
How to Convert a String to Uppercase in PHP
May 10, 2026
PHP string to float conversion with cast, regex cleanup, NumberFormatter
How to Convert a String to Float in PHP
May 10, 2026
PHP merge arrays without duplicates — union operator and array_unique
How to Combine Two Arrays Without Duplicates in PHP
May 10, 2026
PHP delete array element — unset, array_splice, array_filter, array_search
How to Delete an Element from a PHP Array
May 10, 2026

You Might Also Like

Check if GD library is installed in PHP (phpinfo and extension_loaded)
Web Development

How to Check if GD Library Is Installed in PHP (3 Easy Methods)

5 Min Read
MySQL combine columns into string — CONCAT and CONCAT_WS
Web Development

How to Combine Multiple Columns into One String in MySQL

6 Min Read
Laravel Blade Time Format (HH:MM)
Web Development

How to Show Only Hours and Minutes in Laravel Blade (HH:MM)

3 Min Read
Laravel DataTables HTML column — rawColumns opt-out of the default escaping
Web Development

How to Add an HTML Column in Laravel DataTables

7 Min Read
How7o

We provide tips, tricks, and advice for improving websites and doing better search.

Latest News

  • SEO Audit Tool
  • Client ReferralsNew
  • Execution of SEO
  • Reporting Tool

Resouce

  • Google Search Console
  • Google Keyword Planner
  • Google OptimiseHot
  • SEO Spider

Get the Top 10 in Search!

Looking for a trustworthy service to optimize the company website?
Request a Quote
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?