Remove the state field in the WooCommerce Checkout

Remove the state field in the WooCommerce Checkout WooCommerce support to any WordPress theme:

function remove_state_field( $fields ) {
 unset( $fields[‘state’] );
 return $fields;
}
add_filter( ‘woocommerce_default_address_fields’, ‘remove_state_field’ );
See also  Change “from” email address

Leave a Reply

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