Billing Country Not Valid
-
Hi everyone,
Recently I added this code to my functions.php:
/** * Change the default country on the checkout for non-existing users only */ add_filter( 'default_checkout_billing_country', 'change_default_checkout_country', 10, 1 ); function change_default_checkout_country( $country ) { // If the user already exists, don't override country if ( WC()->customer->get_is_paying_customer() ) { return $country; } return 'NL'; // Override default to Netherlands }
But now my logs get spammed with this:
2021-08-17T00:07:07+00:00 DEBUG Billing Country is not valid.
NL is a valid country code, so I don’t get what is going wrong here.Kind regards,
Palactig
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Billing Country Not Valid’ is closed to new replies.