If a customer’s phone number is not required for orders or support, removing the phone number field is a great way to simplify the checkout form.
You can either do this with code or a plugin, depending on what you are more comfortable with.
Remove with a Plugin
The free plugin Checkout Field Editor (Checkout Manager) for WooCommerce allows you to edit, remove or add fields to the checkout form.
- Install the plugin
- Go to the settings page for the plugin
- Select the “billing_phone” field and click “Remove”
- Click “Save Changes”
Remove with Code
Here’s the code snippet to remove the billing phone number field from checkout:
/**
* Remove the phone number field from checkout.
*/
function devpress_remove_checkout_phone_field( $fields ) {
unset( $fields['billing']['billing_phone'] );
return $fields;
}
add_filter( 'woocommerce_checkout_fields', 'devpress_remove_checkout_phone_field' );