Earid

Remove default state selection on checkout

30/05/2022

by Earid

Remove default selected state from woocommerce checkout billing shipping fields


//default checkout state
add_filter( 'default_checkout_billing_state', 'change_default_checkout_state' );
add_filter( 'default_checkout_shipping_state', 'change_default_checkout_state' );
function change_default_checkout_state() {
    return ''; //set state code if you want to set it otherwise leave it blank.
}
Facebook
X
LinkedIn
Email
Pinterest
WhatsApp

Remove default state selection on checkout