Adding this snippet to the functions.php of your wordpress theme will rename any country in WooCommerce countries list. If you want to rename country in WooCommerce Wordpress than add below following code to functions.php of current theme.
This is a simple snippet from the wonderful people at WooCommerce and does exactly what you would think. Add this snippet to the functions.php to add a new country to WooCommerce countries list.
This a handy WordPress code snippet which can be used to display the total products count in your WooCommerce shop. To do this, we are going to use WP_Query.