Make Phone Number Field Not Required on Checkout in WooCommerce

Sometime we don’t want Phone number as required on woo-commerce checkout page so here is hook/script that works for this..

add_filter( 'woocommerce_billing_fields', 'wc_nst_filter_phone', 10, 1 );
function wc_nst_filter_phone( $address_fields ) {
$address_fields['billing_phone']['required'] = false;
return $address_fields;
}

Thanks 🙂🙏

If this help you then.. Can you buy a Cup of Coffee for me by nst webcreation paypal--OR-- nst webcreation blog coffee cup

Published by

NST

Myself Narender Singh Thakur ( NST ) and i share my Experience/Knowledge and Tricks for folks and beginners to solve their issues while making websites through this Planet.

Related Articles

Leave a Reply

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

Click to Chat