How to remove fields on woocommerce shop checkout page

To remove fields on woocommerce shop checkout page use hook: woocommerce_checkout_fields

As an example drop next code in your site current wordpress theme file functions.php:

See fields keys you can disable:

Billing Fields

  • billing_first_name
  • billing_last_name
  • billing_company
  • billing_country
  • billing_address_1
  • billing_address_2
  • billing_city
  • billing_state
  • billing_postcode
  • billing_phone
  • billing_email

Shipping Fields

  • shipping_first_name
  • shipping_last_name
  • shipping_company
  • shipping_country
  • shipping_address_1
  • shipping_address_2
  • shipping_city
  • shipping_state
  • shipping_postcode

Account Fields

  • account_username
  • account_password

Order Fields

  • order_comments

Leave a Reply