PressTigers

How to Add a New Country in the WooCommerce Default Country List

Hooks in WordPress allows you to manipulate code without altering the core files. Similarly, action hook enables inserting custom code at various points whenever a particular hook is called.

If you use a hook to add or manipulate the existing code, add it to your custom code in your Theme‘s functions.php file. In this article, you will learn to add a missing country in WooCommerce default countries list without editing WooCommerce core files.

To add a new country in WooCommerce default countries list, WooCommerce provides a hook named as woocommerce_countires. Just add the following code in your Theme‘s functions.php file:

User Comments

Leave a Reply

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

Get in Touch