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 🙂🙏