On my WooCommerce checkout page, I want the billing fields to be blank except for the billing country.
I'm using this to make sure the checkout form is blank when it gets filled out:
add_filter('woocommerce_checkout_get_value','__return_empty_string',10);
However, I do want the billing country field to be filled out, and default to the US. So I've got this:
add_filter( 'default_checkout_billing_country', 'change_default_checkout_country' );
function change_default_checkout_country() {
return 'US';
}
But the field appears blank, as long as I have that first filter in place. How can I have all the fields blank except the billing country?