Make phone number not required

Make phone number not required WooCommerce support to any WordPress theme:

add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 );
function wc_npr_filter_phone( $address_fields ) {
 $address_fields['billing_phone']['required'] = false;
 return $address_fields;
}
See also  Change ‘Return To Store’ text button in WooCommerce

Leave a Reply

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