 In today's video, I'm going to show you how you can actively add code to your website, your WordPress website and have it actually running very well. So let's see that in action today. In our last video, we were able to add a very simple extra cost to our order in Wokamas by having just these five lines of code. And we did this by adding a small plugin, we created our own plugin using these few lines of code 16. And eventually we got this in our backend as the package cost extra fee. So let's dive into the code that will help us to do that. So the first thing that I need to do is actually go into my WordPress and inside my WordPress, I'll go to a folder called WP content. And this content folder has a plugins folder in here as well, create another folder which will call a LAB package cost or take a press package cost. And inside it we create another file which we call LAB package cost dot PHP. Now in the same way we can actually copy this code and then I'll comment it out. We can actually go inside our themes folder and our current theme is actually 2019. Then we look for the functions dot PHP file and then when we scroll all the way to the bottom can actually just paste this code here. And if we reload this page, we'll actually see that this actually stays here. So I can change this to 7 just to show you the difference and I reload here and you will see that we now have 7 UGX as our packaging fee. So there are two ways you can either use the functions dot PHP file or you can create a plugin by going into your plugins folder in WP content of your site. And then you create a folder create another file in here which is a PHP file it can be with the same name as the folder name. With that you just add these few lines of code the plugin name which you will actually see showing up here. So you can see the plugin name which is package cost extra fee here that comes through this line of code. So please be sure to make sure these are comments it's a slash a star then you add these lines of code in there. So we have the description which we see here we have the author who is here we have the plugin URI which is the link under the plugin this. Then we have the author URI which is the link to the website of the author then the text dov main is the one that helps WordPress to translate your plugin and make it available to all different languages. So that's how we add our code either to how that's how we add our extra code into our WordPress website. So I usually advise people to actually build a plugin a small plugin because if you get tired of using this functionality all you have to do is just actually deactivate. And when you deactivate that and reload you actually see that this is no longer applying so that's the beauty of it. But with a theme if you change the theme you lose your functionality yet in a plugin you wouldn't lose this functionality if you are using a plugin. With a theme it's easy for you to lose your functionality when you change the theme to make it different maybe you're having a winter website now you want to have a summer website. If you change the theme you lose the functionality but if your code is in a plugin the only time this will be deactivated is if your papas fully come and deactivate it here. Now I know the fear for some people is that having so many plugins will slow down your site not necessarily the only reason why your site would slow down is because you have written bad code but if you write good code then there's no problem with your site working normally and functioning normally. So please build a plugin add your code in there and then use it so thank you for watching this video if you really liked it give it a thumbs up share it with your friends and don't forget to subscribe.