How to Change The Default State And Country on The Checkout

By: Prem Tiwari | Last Updated: | In: Code Snippets, WordPress Snippets

If you want to set the default shipping country and shipping state on the checkout page in your WooCommerce store, then keep your close attention in this tutorial as I am going share how to change the default state and country on the checkout page.

How to change the default state and country on the checkout

Copy the below code and add at the end of functions.php file to set the default country and state on the checkout page. In the below code I have set the USA as a country and New Jersy as a state.

After adding the above code.

I hope this tutorial helps you, if you have any questions regarding WordPress, then feel free to put your comments in below comment section. Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

About: Prem Tiwari

Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

You may also like:

Tags: , , , , , , ,