I want to add new state in WooCommerce. I used woo-state and snippet plugin and added this code:
function woo_add_my_country( $country ) {
$country["AE-DU"] = 'Dubai';
return $country;
}
add_filter( 'woocommerce_countries', 'woo_add_my_country', 10, 1 );
But still I cannot see it.
How to add new state for a country to WooCommerce?