 Tadi fisha wak multi hale yukimia nafu mtulem tata wafu reninutimia wak mtulem hale wak wak wak wak bajia kwa mtulem hale mtulem mizi zirej還isikira nafu hendu yon wak wak wa nii nii gupi kupi dadi wak wak wak uu nafu kwenipa naredu mqaikani nafu kwenipo wak wak wak wak mujaan qivi kwenipa naredu wukamas. If you're interested in seeing videos that will help you navigate your WordPress or wukamas and help you come up with solutions, this is the channel for you. So consider subscribing or even giving a like to the video if you find it helpful. So let's jump into the solution. So I have my editor open here and I have one of my local install of WordPress and wukamas right here. So I'll go in the WP content folder, I'm going to go into my plugins folder, and then I'm going to open up my wukamas. So I'll open this up and drop it inside my editor. And once I open this up you'll see we have a folder which is called i18 for internationalization and when you open it you'll be able to see the continents.php file that shows you all the different continents that are available and then it shows you the different country codes. So for example if you're in Africa you'll see this in the F, if you're in Antarctica you'll be able to see this in AN and Asia you'll be able to see all these different continents that are highlighted for you to be able to pick up your country code. So if you're in Asia let's say you want to see whether you're in Sri Lanka it is the LK version. Now how am I sure this is so? If I go to the countries.php you'll be able to quickly do a search. So for example I'm going to look for Sri Lanka and you'll see that Sri Lanka is actually an LK and it is the country we are looking for. So there are so many other countries if you can't find your own country I have a video that shows you how to add your country and it's listed in the video description down below. Now if you want to see more information let's say like the states that are in your particular country. We're going to go to states and then I'll look for Sri Lanka which we noted that it is LK we'll be able to see a number of LKs in here so I'm going to just scroll down and you'll see that Sri Lanka actually doesn't have any particular states that are in here. Now if you want to have the next releases of Wukamas having Sri Lanka states in here you can actually go and contribute this on the Wukamas repo and that's where we're going to go for now. So if I go to my browser and then I type github.com slash Wukamas and then I will go to slash Wukamas and hit enter you'll be able to see a similar repo that has Wukamas in here. Now you can contribute to the Wukamas by following the contribution guide that I do have here on how to add the different countries or you can make a formal request giving all the information that's needed so similarly like we saw in our editor here we had an i18n folder we have the same folder here so meaning you can get the same information from this same folder on the github repo so if I click i18n here you'll see we have our continents we have our countries we have our states in here and if I go to the states and just control f and look for LK which is Sri Lanka you will see that it's also empty here so you can be able to submit so that all the subsequent versions of Wukamas will have Sri Lanka with the states in there but if you look at all the other states like Tanzania you will see that it has all the different listed states which are like the second level administrative division of the country so you will see that you have Dodoma, Arushad, Asalam, all those are listed here in Tanzania so we can build on Sri Lanka by submitting in here or we can actually just use this video that I created on how to add new cities and new states inside Wukamas. Let me jump into that code to hope you see how to make that better so since we don't have anything listed in our Sri Lanka for now let me try to add new states inside our Sri Lanka country I'm going to stay in my editor here I'll open up a new plugins folder inside my installation and I'm going to call it Sri Lanka States and after doing that I'll drag this and drop it inside my editor I'll add it to my workspace and inside here I'm going to open up a new file which I'll call Sri Lanka dash states dot php so the first thing we'll do is is open our php here so after writing our php I'm going to use my shortcut so this shortcut will allow me to add my comments in here so I'll call this Sri Lanka States I'll change these links to my github repo so github.com slash ytt techiepress and then what I'm going to do next here is I'll add my author name and I'll say I'm techiepress and then we'll just say add Sri Lanka States in here add Sri Lanka States and then I'm going to give it a version of 0.1 and I'll say this is gpl 2 or later for that particular license I'm going to just copy this and I'll make it my particular plugin text domain so after doing that I'm going to hit save here I'm going to go to my local server I'll open up the admin as the admin opens up I'm also going to look for the Sri Lanka States on Google now that our admin is open I'm going to go to the plugins and inside the plugins I'm going to activate our Sri Lanka States right here now of course this is not going to do much of a change because we've not written any kind of code so let me go to wukamas and go to the settings and then I'll go to the shipping and then I'm going to try to add a shipping zone in here and you'll see that when I try to type for Sri Lanka we're only getting Sri Lanka showing up here so I'm going to try to add a couple of things so I'll come back into my code and then the first thing that I'll do is add some simple security to my plugin and say if the abs path is defined then we should continue if it's not defined then we should say let this plugin stop running now we're going to use a filter so we'll say add filter and this is a default functionality of WordPress we're going to have a filter called wukamas states and inside the states we're going to just say we want to have a take a price Sri Lanka States addition so that's going to be our function that we shall write we shall copy this and then here I'll add a function right here and then I'm going to add our brackets I'll add our brackets and in here is where we shall write our code now we are going to be receiving some states from that filter and we want to be able to type that states then we're going to return it as the first thing so states should be returned so after getting the states here the first thing we shall do is say let's get our states variable and we're going to say this states is actually an array and inside this array we're going to look for a LK which is a Sri Lanka country so on this Sri Lanka we shall say we're going to add an array and we shall say our array is actually going to equal to a number of items so in here we're going to start giving particular IDs to let's say we shall say our first ID will be LK 001 and we shall say that's going to be let me just look up Sri Lanka as a country I'll google up Sri Lanka and you're going to find that it has a city called Colombo and then you'll see we have a number of other countries to it so let me go back to my code I'm going to say LK1 is going to be Colombo I'll add another LK 002 and say that's going to be and we'll just take another city I'm not sure whether this is a city or something but I'm going to just go for Kandy and Matale so in here we shall have Matale put a comma and then I'm going to and then going to go for LK 003 of course map onto that and say that one is going to be Kandy so add a comma here and save this so once I save this I should be able to go back to my administrative area I'll reload this that's a leave I'll reload this page and when I come here and type Sri Lanka you'll see that we have Colombo Matale and Kandy so I can be able to actually just even type Matale and you'll see that it comes up in Sri Lanka so those can be my new shipping zones I can have them as cities on my page and that is because I was able to figure out that when you come to Wukamas in the I18 you should be able to go to the states and then you'll find out the different country codes or you can actually go to the countries and you'll find the different countries and the code that you're looking for and that's our solution if you enjoyed this video please give it a thumbs up don't forget to share it with your friends if they're struggling with the same issue or you can actually consider subscribing to the channel if you're new here and you find the content that's coming up helpful don't forget if your country doesn't have any states in here you can actually go to the Wukamas repo and you submit for those states to be added to your particular country otherwise enjoy yourself