 Welcome back to the channel. Now after posting this video online on how to add a currency and a new symbol in WooCommerce, I got a number of questions asking me how you can actually edit those kind of symbols that are already existing. So I have that question appearing twice on the same video. So let's dive into how to do that. So in my Cpan I'm going to go to my file manager and inside here in my root folder I'm going to go to WP content. I'll go to my plugins and then I'm going to create a new folder which I'll call take a press WooCurrency. Inside it I'll create another file would take a press WooCurrency dot PHP. And when I edit this, this is what I have. So I have started my PHP and I've started the comments that will allow WordPress to recognize my code as a plugin. The reason I do this is because I want this to change every time I change my theme. I still want the same functionality to go on. So that's why I don't put this code inside my functions dot PHP. So let's start writing some code. We're going to use the addFilter function in WordPress and inside here we shall use the WooCommerce filter which is called WooCommerce currency symbol. And we're going to use this again so I'll copy this and then write our own function. And our function I'll prefix it with take a press then do the same thing. And I'll give this a priority of 10 so that it kicks off very early in all the stages and we'll pass in the two arguments that come with this particular filter. Now as we write this function I'll copy its name from here and add it here and then close off the function itself. And then I'll quickly pass in the arguments that we get. So the first argument is actually currency symbol. And then the next one is currency. So let me vadam what we have in currency symbol so that we can see what is actually going on. So I'll start off with my pre tags. I'll duplicate that so that I can quickly code. Then what I'm going to do is vadamp the currency symbol. So besides vadamping the currency symbol I'm also going to vadamp the currency so that we can see what's going on inside both items. So currency I'll save this and then I'll reload. So we see the currency symbol here and we also see the currency that we're talking about. So that's why when we start writing our functions I'm going to comment this out. I'm going to return a currency symbol here. I'm going to look through the array of the currency symbol and I'm going to pick out one particular symbol that I want to change. So what I'm going to do is use a switch statement here and say switch the currency. And I'm going to look for the case where I'm looking for something particular. Let's say USD. And with this I'm going to set the currency symbol. I'm going to say its currency symbol should now be called American USD. And then after doing that I'm going to hit the break. So let's save this and then reload here. And I'm going to just go to WooCommerce and then go inside the settings. And then I'll scroll all the way down and you will see that we have United States where previously we had a dollar. We now have AUSD. So if we are looking for the United Arab Emirates DRAM like this we're going to have to look for the code in the array that adds this currency. I'm going to quickly go to my WooCommerce but in this case I'm going to go to the WooCommerce GitHub repository and I'm going to look at how the code is passed in to give us this particular language. So I'm going to go into the includes. I'll look for the WC COA functions and when I look through it there are a number of files that we are seeing here. What we are actually looking for is the WooCommerce currencies and you'll see that the United Arab Emirates DRAM is actually called AED. It's not in the Arabic language. It's in plain old English letters. You can find all these different currencies for your country. I'll put a link to this file in the video description so that you can find your own country. So what I'm going to do is just copy the AED here and I'm going to paste it here. Now what I want to do is I want my currency to also be called AED. I'll remove these comments and then I'll click save and once I come back into my admin area and reload you will see that for our United Arab Emirates DRAM we have AED instead of the Arabic. Feel free to go to this link, find out your country code and then you can change the currency that you want to change. That's it for the video. If you enjoyed it, give it a thumbs up, share it with your friends and don't forget to subscribe to the channel if you find the content helpful. Leave me a comment about what you think about this. Otherwise, peace.