Remove Billing & Shipping Address In Woocommerce Checkout

Depending on the type of products you are selling via a Woocommerce store, sometimes you don’t need the billing and shipping address details on the Woocommerce checkout page. Adding this little snippet to your functions.php file, you can deregister them from loading easily:

add_action('woocommerce_checkout_init','disable_billing_shipping');
function disable_billing_shipping($checkout){
$checkout->checkout_fields['billing']=array();
$checkout->checkout_fields['shipping']=array();
return $checkout;
}

Useful post? Share it

Leave a Reply

Your email address will not be published. Required fields are marked *