Hello @krasniqi8,
Hello dear staff of Woocommerce I’m having every time problem when i make update ur plugin bc my country its not yet added on your list country please. Can you add my country to ur list.
A Github report was already opened to add the Republic of Kosovo as its own country: https://github.com/woocommerce/woocommerce/issues/35819
At the time being, you add the following snippet to your site to fix the problem.
/**
* Add a new country to countries list
*/
add_filter( 'woocommerce_countries', 'handsome_bearded_guy_add_my_country' );
function handsome_bearded_guy_add_my_country( $countries ) {
$new_countries = array(
'XK' => __( 'Kosovo', 'woocommerce' ),
);
return array_merge( $countries, $new_countries );
}
add_filter( 'woocommerce_continents', 'handsome_bearded_guy_add_my_country_to_continents' );
function handsome_bearded_guy_add_my_country_to_continents( $continents ) {
$continents['EU']['countries'][] = 'XK';
return $continents;
}
I’m not sure if ‘XK’ is the country abbreviation, feel free to edit the snippet as you like.
You can add it to your functions.php
file or use a plugin like Code snippet.
Hope this helps!