Disable WooCommerce Checkout Fields

I’m working on a site where I have to disable the WooCommerce checkout field. While StackOverflow is full of chunks that remove the checkout fields totally. So I dig in WooCommerce and found the below solution.