Title: Remove feilds
Last modified: July 8, 2022

---

# Remove feilds

 *  Resolved [abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/)
 * (@abhisheksharma8789)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/)
 * I want to remove company name and country feild from checkout,and downloads feild
   from my account,css code

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Daniyal Ahmed (a11n)](https://wordpress.org/support/users/daniyalahmedk/)
 * (@daniyalahmedk)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15808950)
 * Hi there,
 * Thanks for reaching out.
 * There are a couple of ways to remove the checkout fields. You can add the following
   code in your child theme functions.php file to remove the `Company Name` and `
   Country` fields.
 *     ```
       add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
   
       // Our hooked in function - $fields is passed via the filter!
       function custom_override_checkout_fields( $fields ) {
            unset($fields['order']['billing_country']);
            unset($fields['order']['billing_company']);
            return $fields;
       }
       ```
   
 * You can learn more about this hook here:
 * [https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/](https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/)
 * If you are unfamiliar with code and resolving potential conflicts, we have an
   extension that can help:
 * [https://woocommerce.com/products/woocommerce-checkout-field-editor/](https://woocommerce.com/products/woocommerce-checkout-field-editor/)
 * I hope it helps!
 * Best,
 *  Thread Starter [abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/)
 * (@abhisheksharma8789)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15809116)
 * Not working in code snippet
    And remove downloads feild from my account
 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15810193)
 * Hi [@abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/)
 * > And remove downloads feild from my account
 * You can simply remove the endpoint for downloads in your “WooCommerce > Settings
   > Advanced” page, under the “Account endpoints” section.
 * As for the code not working to unset your checkout fields — where did you add
   that code, and what theme are you using?
 * Can you please provide us with your status report found under “WooCommmerce >
   Status” page?
 * Cheers!
 *  Thread Starter [abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/)
 * (@abhisheksharma8789)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15811001)
 * Thanks alot
 * But not solved
 * I want to remove company name and country feild from checkout,and downloads feild
   from my account,css code
 * And I am using code snippet plugin.
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15811265)
 * Hi [@abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/)
 * > I want to remove company name and country feild from checkout,and downloads
   > feild from my account,css code . And I am using code snippet plugin.
 * For the downloads field, have you removed the endpoint for downloads under the“
   Account endpoints” section, and yet it did not work?
 * As requested above, in order to check your configuration and assist you further,
   please share a copy of your site’s System Status. You can find it via **WooCommerce
   > Status**. Select “Get system report” and then “Copy for support”. Once you’ve
   done that, paste it here in your response.
 *  Thread Starter [abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/)
 * (@abhisheksharma8789)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15814718)
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): https://ani9.tk
       Site address (URL): https://ani9.tk
       WC Version: 6.6.1
       REST API Version: ✔ 6.6.1
       WC Blocks Version: ✔ 7.6.2
       Action Scheduler Version: ✔ 3.4.0
       Log Directory Writable: ✔
       WP Version: 6.0
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: –
       WP Cron: ✔
       Language: en_US
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Apache/2
       PHP Version: 8.1.4
       PHP Post Max Size: 8 MB
       PHP Time Limit: 30
       PHP Max Input Vars: 1000
       cURL Version: 7.71.0
       OpenSSL/1.1.1d
   
       SUHOSIN Installed: –
       MySQL Version: 5.7.37
       Max Upload Size: 2 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 6.6.1
       WC Database Prefix: wpy0_
       Total Database Size: 9.39MB
       Database Data Size: 7.46MB
       Database Index Size: 1.93MB
       wpy0_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       wpy0_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wpy0_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wpy0_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
       wpy0_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wpy0_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_nextend2_section_storage: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
       wpy0_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_nextend2_smartslider3_sliders: Data: 0.11MB + Index: 0.03MB + Engine InnoDB
       wpy0_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_nextend2_smartslider3_slides: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
       wpy0_options: Data: 4.44MB + Index: 0.08MB + Engine InnoDB
       wpy0_postmeta: Data: 0.20MB + Index: 0.11MB + Engine InnoDB
       wpy0_posts: Data: 1.44MB + Index: 0.06MB + Engine InnoDB
       wpy0_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_tinvwl_analytics: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_tinvwl_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_tinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wpy0_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wpy0_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wpy0_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wpy0_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wpy0_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_wishsuite_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wpy0_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wpy0_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   
       ### Post Type Counts ###
   
       attachment: 51
       custom_css: 1
       customize_changeset: 46
       elementor_library: 1
       elementor-hf: 1
       nav_menu_item: 8
       page: 20
       post: 14
       product: 36
       revision: 75
       wp_block: 1
       wp_global_styles: 1
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (7) ###
   
       Code Snippets: by Code Snippets Pro – 3.1.1
       Essential Blocks: by WPDeveloper – 3.5.1
       MetaSlider: by MetaSlider – 3.27.6
       Smart Slider 3: by Nextend – 3.5.1.7
       TI WooCommerce Wishlist: by TemplateInvaders – 1.47.0
       Ultimate Addons for Gutenberg: by Brainstorm Force – 1.25.6
       WooCommerce: by Automattic – 6.6.1
   
       ### Inactive Plugins (4) ###
   
       Elementor: by Elementor.com – 3.6.7
       Elementor Header & Footer Builder: by Brainstorm Force
       Nikhil Chavan – 1.6.12
   
       Essential Addons for Elementor: by WPDeveloper – 5.1.8
       WooLentor - WooCommerce Elementor Addons + Builder: by HasThemes – 2.4.1
   
       ### Settings ###
   
       API Enabled: –
       Force SSL: –
       Currency: USD ($)
       Currency Position: left
       Thousand Separator: ,
       Decimal Separator: .
       Number of Decimals: 2
       Taxonomies: Product Types: external (external)
       grouped (grouped)
       grouped (grouped-2)
       simple (simple)
       variable (variable)
   
       Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
       exclude-from-catalog (exclude-from-catalog-2)
       exclude-from-search (exclude-from-search)
       featured (featured)
       outofstock (outofstock)
       rated-1 (rated-1)
       rated-2 (rated-2)
       rated-3 (rated-3)
       rated-4 (rated-4)
       rated-5 (rated-5)
       rated-5 (rated-5-2)
   
       Connected to WooCommerce.com: –
       Enforce Approved Product Download Directories: ✔
   
       ### WC Pages ###
   
       Shop base: #11 - /shop/
       Cart: #13 - /cart/
       Checkout: #15 - /checkout-2/
       My account: #16 - /my-account/
       Terms and conditions: ❌ Page not set
   
       ### Theme ###
   
       Name: Storefront
       Version: 4.1.1
       Author URL: https://woocommerce.com/
       Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
       WooCommerce Support: ✔
   
       ### Templates ###
   
       Overrides: –
   
       ### Admin ###
   
       Enabled Features: activity-panels
       analytics
       coupons
       customer-effort-score-tracks
       experimental-products-task
       experimental-import-products-task
       experimental-fashion-sample-products
       homescreen
       marketing
       mobile-app-banner
       navigation
       onboarding
       onboarding-tasks
       remote-inbox-notifications
       remote-free-extensions
       payment-gateway-suggestions
       shipping-label-banner
       subscriptions
       store-alerts
       transient-notices
       wc-pay-promotion
       wc-pay-welcome-page
       wc-pay-subscriptions-page
   
       Disabled Features: minified-js
       settings
   
       Daily Cron: ✔ Next scheduled: 2022-07-08 10:18:22 +00:00
       Options: ✔
       Notes: 36
       Onboarding: skipped
   
       ### TI WooCommerce Wishlist Templates ###
   
       Overrides: –
   
       ### Action Scheduler ###
   
       Complete: 25
       Oldest: 2022-07-08 10:22:04 +0000
       Newest: 2022-07-11 08:55:55 +0000
   
       Pending: 1
       Oldest: 2022-07-11 12:30:33 +0000
       Newest: 2022-07-11 12:30:33 +0000
   
       ### Status report information ###
   
       Generated at: 2022-07-11 10:48:06 +00:00
       ```
   
 *  [Sandip Mondal – a11n](https://wordpress.org/support/users/sandipmondal/)
 * (@sandipmondal)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15820315)
 * Hi [@abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/),
 * 1. To remove the download menu from the “My Account” page, please go to **WooCommerce
   > Settings > Advanced** and remove the endpoint for download like this: [https://d.pr/i/m7mC9H](https://d.pr/i/m7mC9H)
 * 2. To remove the Company and Billing field, the above snippet won’t work. Try
   the snippet I am sharing below:
 *     ```
       add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
   
       function custom_override_checkout_fields( $fields ) {
            unset($fields['billing']['billing_country']);
            unset($fields['billing']['billing_company']);
            return $fields;
       }
       ```
   
 * Let us know how it goes!
 *  [Niall a11n](https://wordpress.org/support/users/wpniall/)
 * (@wpniall)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15890741)
 * Hi there [@abhisheksharma8789](https://wordpress.org/support/users/abhisheksharma8789/),
 * Hope you managed to get Sandip’s code working on your site! We haven’t heard 
   back from you for a while, so I’m going to mark this post as resolved now. If
   you need any further help here, please let us know. Or, if you need additional
   help with the Storefront theme, please start a new thread and we’ll be able to
   help you out there.
 * Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Remove feilds’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

 * 8 replies
 * 6 participants
 * Last reply from: [Niall a11n](https://wordpress.org/support/users/wpniall/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/remove-feilds/#post-15890741)
 * Status: resolved