 right welcome back to the channel if you didn't watch the last video I'd advise you to watch it because we talked about how to create a new user role like SMS manager by just having a few lines of code and then we activated and we added this word whenever we activate our plugin and on deactivation we actually removed this so so what we're going to do in this video is actually just clean this up make a few name changes here and there and make sure that we are on course to have our plugin ready to use so what I'm going to do is actually just duplicate this in my plugin so that I'm making sure this is working out so that I have a copy and what I'm going to do is rename this and then call this SMS manager so I'll take the press manager I'll first of all close off this then rename this and then change this so what we're going to do in here is a actually re-import our plugin and then add it to our workspace I'll remove this old one called it's no longer reusable so I'll start adding some files so I'll have an includes folder and then in here I'm going to add add roles that will be php so I'll call register add roles and then from there I'm just going to get all my activation stuff cut it put it in this and then php I'll add some comments add new user role for SMS manager and paste this let me make this a little clear so we'll have this and then we don't have this here anymore what I'm going to do is I make a simple require once or include once this would be required and what I'm going to do here is I'm actually going to add the plugin directory path so I'll just use the plugin dear path which is the file so I'll add file in here and then I'll append the last pieces of our name so register I'll just copy a relative path cut this and just put it here and save so let's first check if that is working if we reload here we should have SMS manager and let me just try to be activated reactivate the plugin I need to change this so call this SMS manager and then something here for the text domain save this cut my reactivation and the activation hooks because what press requires them to be in the best file so I'll leave that they'll be in the file they'll be here and so we require our functions which are here and then of course I'll make this comment proper for this to remove and save this so once that is done if I come back here and reload deactivate my plugin and activate it if I come back and reload we have our SMS manager here if I deactivate it we'll see that our role goes away so we're in a good place right now so the next thing that I'm going to do is also require once again and then I'm going to add we're now going to add our admin menu sorry I'll change this to reflect the right file structure so save this come in I include open a new file give it this name and then I'm going to register all of this cut it clean this out safely and then add new PHP here and save our function for opening our admin save this and then this looks a little clear it's very it's very welcoming and then once I reload this we still have our SMS plugin here