 So I've finished installing my local which is going to be my server and I've also installed visual studio code. I've customized it to look like this because it's easier on my eyes and if you want to see the different extensions and themes that I've used to make it look like this there's a video in the description or one that has popped up on your screen right now in the top right corner and you can visit that to see how to make your editor look like this and have a different number of extensions like I do have here so let's go back we're going to create a new site which I am going to call domains I'll click continue or you can actually choose that once after creating this you will see that it's going to be called domain.local in my browser I'll click continue and here you can customize what version of PHP you want to use I'm going to go with 8.0 you can use any of these servers it doesn't really matter and then for my database I'll choose 8.0 which is the latest and I'm doing this to try to make sure that my code is more updated and it will work with different servers so I'll click continue and then I'll say this is going to be called domains as a login name I'll just add a default password and I'll say let's add the site and now my site is actually ready for use so I'm going to turn on this one click admin to allow me to always login without having to add my username and password all the time and this is going to be on my local site so I can actually either open the site by clicking that and this is already ready for use or I can actually go and login into the WP admin and you're going to see that I'm already logged in I don't need to add the password or username and this is ready for me so I don't have to fidget with brand things to just set up WordPress for use so this is how we set up for development or how I ideally set up for WordPress development and then I can go check the plugins we have nothing installed in here and we're going to start creating our own plugin what I'll do is open up my editor open up my server I'm going to click to go to site folder and what I'll do is just drag and drop these domains in here because it's my domain folder I'll go inside up and you're going to see all the files that are related to WordPress now inside the WP content is where we have our plugins folder and inside our themes that's where we have the different themes now people ask me the code that you've created can I run it outside of a plugin yes you can do that you can actually use your themes functions.php for example my current active theme is the 2023 theme so I can actually go in here and create a functions.php file and this is a place I can run all my php code but the problem is that I might want to change a theme and when I do that I lose functionality of the code that is inside here so in preference I always check out and say is this code that I'm going to write is it going to make my site just look better then that goes into the theme but if it is something that's going to create a new functionality altogether I would rather create a plugin for it it doesn't matter whether you have a thousand plugins on your site your site will run well the problem is if your plugins are poorly written then those can slow down your site but the other advantage that you do have is that if you write a plugin you can be able to just click it to deactivate it or activate it and then you will have the functionality so since we are going to create a domain search I'm going to create a new plugin called domain-searcher and inside here I'm going to create a new file called domain-searcher.php and this is going to be the file that we are going to use to create our plugin now if I go back to plugins here and reload you're going to see that there is nothing showing that we have a new plugin but WordPress requires us to just write this PHP line and then we are going to have comments in here different comments that will actually highlight that this is a plugin for example we can have plugin name and we're going to call this domain-searcher I just need to spell this right I'll save this when I go back to my code and reload you're going to see that now we have this thing called domain-searcher in here and we can actually activate it and when we activate it nothing is going to happen really because we've not written any particular code for it but we are able to have this plugin in here so I'm going to go back in here and I'm going to use a small snippet in my editor which gives me all the different options that are available for me to write the comments with the different names so we say the plugin name will be domain-searcher and then we're going to give it a plugin URI I'm going to just say this is going to be working on my blog and you can change this to any domain that you want and then in here I'm going to say this is take a press this plugin enables the search renewal and registration of UG domains so once I do that I'm going to save this come back here let's reload you'll see that we have our description here we have our version number and you'll see this version is right here and of course we add the license I would rather choose to have it as GPL because everything that is in WordPress automatically adopts the GPL license so I'll keep that in there and what I'm going to do here is say this is going to be domain-searcher and I'm just going to prefix this with my name so that we don't have any clashes let's say in the future with someone writing a plugin that is similar and we're having issues writing this so I'm going to prefix it with take a press and that will be my text domain and we are ready to actually move ahead and start writing our plugin now the first thing that I'm going to do or the final thing that I'll do in this particular video is I'm going to add a line of code that allows me to keep my plugins secure from people whom I try to access this particular file on the server without permissions I'm going to use a PHP function which is called defined and this is going to check if this particular constant abs path which is in WordPress it's going to check is abs path defined and if it is true then it will continue but if it is not true then I'm going to tell it please die add the message and say unauthorized access and I'll put an up post to fee and just save that so with this I've added a little bit of security to my plugin so as I close off this particular segment of the video I just want to let you know in advance that the code we are going to be writing is going to be in functional programming whereby we're just using functions and calling them all over the place but we can eventually move this into what we call object-oriented programming whereby we classify different functions and say these should exist in a class and then we can call them and enjoy the different benefits that come with object-oriented programming don't worry about those two things because they sound like they are mammoths of concepts but we're going to break them down and then with your practice you'll actually find them easier and you will add them inside your own code now we shall also look at things like coding standards and using the WordPress recommended coding standards and you're going to see that I don't write my functions in here and live without the space I actually go ahead and add space in here and for me it's easier on my eye because that's the way I've always written my code but it's just a preference some people don't like to have those spaces so they will overwrite the coding standards but those are some of the things that allow you to share code with other people and though easily contribute and engage with your code because it's easier to look at and easier to read so otherwise enjoy whatever you're coding