Forum Replies Created

Viewing 1 replies (of 1 total)
  • I just tried Herrin’s method and haven’t seen any results. Looks like something is a foot. The only success I’ve had was using the below method to make phone number not required, but can’t seem to unset the fields as above. Any idas?

    <?php
    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;
    }
    ?>

Viewing 1 replies (of 1 total)