 Wa kabama na chanao, mwiai y11 hwa, kwentu na naihaka 2 mahi na kwa 1 niye, designated hwiai y21 mahi kuya kwa y11 gandinek mahi nwiai hasto nyama na mahi y11 hwa kwenu nukara kwa kwenu y11 hwa, ukee kta kiputi kwa seno kwa na sepa nikahavu mwe nARKo y11 nengia but we don't want to have all these showing up or maybe we don't want to have one particular item showing up so we want to customise this and make it better for a custom experience for our customer maybe we want to remove particular items for our editor or a subscriber whatever user privilege they have we're able to actually edit this what I'm going to do is I'm actually going to start up a plugin where I'm going to write all this code that we're going here so I'm going to go into my local installation and then I'm going to just open up folder and I'll just call it edit editor editor's guide maybe I don't want this to conflict so I'll drop this in my editor and then I'll set up the file so I'll call this editor's guide dot php and then next is I'll start up our php file and put in the requirements that what press or classic press has okay so the first thing we'll do is write a plugin name call it editor's guide then we'll give it a plugin author with Lawrence and then of course we'll give it a plugin URI and then cool I'll just correct this and then I'll do the sample author and then I'll add a description saying that this plugin edits the menu or edit has and then the next thing that we'll do is we're going to add a version and then we'll start writing our code so 1010 so we'll save this and then I'm going to go into my administration area in the plugins and I'm going to activate our our plugin so I'll find it here then activate it and of course it starts so I found an interesting article online written by a code potent who is a really big about boosting classic press and he talks about how to add a custom utility plugin for your website he goes into detail of how to explain it and you can actually just go to code potent.com to see that so he has also some code snippets of how you can begin and how you can namespace your file and then go ahead to start on it and what you need to do so I would encourage you to go and read that article it would help you figure out a couple of things especially if you have conflicts with your plugin so the first thing that we're going to do in our code as we go back here is we're going to tap into our admin hook which is we're going to add an action and use the default classic press or WordPress setting so we're going to look for admin menu which is our hook and we're going to add a function that we're going to call remove editor settings so I'll just remove editor settings and then we're going to start up that function right here and the first thing that we'll do is that we're going to just test out with one page and we're going to remove so what we're going to do is we're going to use the remove menu we'll move menu function and I'll show you this because it works for all the same so whenever you go to each of these links I just need you to look down here you'll see what we're talking about when you go to the dashboard we see that it's an index.php now if we go to post we see it has edit.php if we go to the media upload.php same for pages edit but it has a post type of page comments is edit dash comments of php themes.php users tools and settings so let's just try out with tools and see how we can remove that so when you go back to your code all you need to do is just add your quotes and say tools.php is what I want to actually remove so at the end we terminate this function and then the next thing we are going to do is just cross talk if this is right yeah so when we save this and go back and reload our plugin in here we see that we no longer have tools section right here in our plugin so the next thing that I'm going to do is I can actually just go ahead and say I will move also the settings which is options.general.php I'll just duplicate this line and make it for options.general.php so if I save this robot reload page we see that we don't have the settings so this is quite important as we go to the next step so you can actually make sure that all these are not even visible if you're going to use a customised system and you can write your own you can write your own menus like I've shared in the video there's a video that if you look up in the information link or if you look in the notes below this video you'll see the link that I've put there you can create your own custom post types and create your own custom menus and that will allow you to have a particular experience as a custom software for WordPress however we can look this up and say maybe we only want this particular function we want this to run only if the user is an editor so we should allow administrators to actually have all those options but we should remove all these options for the editor so there is a function in WordPress which is called current current user can so the capability is usually the person so if you say this person is an editor so what we're going to do is make this a condition and say if the current user is an editor then we should run this particular function so we're going to add the functionality this particular functionality to our to our function so we go to this and add and then we'll just move all these options and move them up so that when we go back to our browser and reload we see that we have the tools and settings right here however if we open up this incognito and go to login as an editor let's click in login so we have our editor as a user just quickly find it in the password so when you login as an editor we actually see we don't have some of those let me just use the post item to make it more obvious so what I'm going to do is here add this extra link and just change this to edit.php and click save if I go back right now in our editor here if I reload we actually don't have posts for our editor so the only thing they can do is work with pages and media so you're able to customize a classic press or WordPress for yourself and use it in your daily and give a particular experience for your users so thank you for watching I'll be sharing more of these little tricks for you keep watching the channel if you like the video please give it a thumbs up subscribe if you haven't don't forget to click that bell so that you get notified when my new video is out enjoy yourself