WooCommerce Checkout Fields

Question

I’m trying to remove the shipping-country field.

This is the code..

add_filter( 'woocommerce_default_address_fields' , 'custom_override_checkout_fields' );

function custom_override_checkout_fields( $fields ) {
     unset($fields['shipping']['shipping_country']);
    unset($fields['shipping']['shipping_state']);
     return $fields;
}

enter image description here

0
Daniel Shalar 4 months 0 Answers 13 views 0

Leave an answer