 So what I'm going to do is I open up my installation of my WordPress. I'm going to open up a new Plugin and I'm going to call it a full screen Take press full screen so that I can always reference it easily Copy this and then I'll drag and drop this new plugin folder inside my editor So we are ready to begin. So I'll create a new file here I'm going to start off with PHP and we're going to have about six seven lines of code and then of course I'll put what is required. I have a little snippet here that helps me to start my plugins So I'll just start plugin and then I'll just do what is required of me Another great piece. I'm going to tap and add I'm going to use add action hook And I'm going to tap the Gutenberg Hooks that are available and this particular hook is what we call a cube block editor assets So then we're going to add a function here, which I'll just call take a press disable full screen mode I'll just put an underscore here and then at the end I'll put the semicolon that we need So we'll start up this function And then we'll start up with our code Now we're going to use a wordpresser function, which is a wp-add inline script Which takes in the handle. Also, we just call it take a press full screen mode disable For short, I'll just call it that and then of course we'll have We're going to add a JavaScript file. Unfortunately. It's not all in PHP, but it is in JavaScript So we're going to have to write a JavaScript. That's why we're using the wp-add inline script So I'll just get the script and say we're going to write this The script is equal to what we're going to do is add a full quotations Okay, so I'll just move my action below so that I can just write this above So let me give this some space and then inside here we're going to we need to have jQuery loading and Then we're going to inside jQuery will look for the window basically you're looking for the whole Window the whole dome and we're going to say when the window is loaded So when our window is loaded then we shall do these particular things first of all We shall have a function and this function is going to run these particular things Before you forget on load Let's terminate that with a semicolon and then what we're going to do next is we're going to add a constant is full screen mode and That's going to be our constant that we are writing and we're going to say if it is full screen mode. Let's tap into the wp-data So basically now we are starting to work with the react JavaScript of our wordpress all these are packages already Wordpress, so we're going to go with the wp-data select And we're going to go for the core dash edit dash post and at the end of that we're going to say is feature Active is the feature active. That's what I'm looking for is the feature active Which feature are we looking for we are looking for this full screen mode in lower case So we are looking for is full screen mode. We are looking for that So we have set up our constant and saying is it full screen mode? Let's get the wp-data select get the core edit post Function and look for if the feature is active and that is a full screen mode So if our constant here now if it is full screen mode That means if it is true, then what we are going to do here is we're going to get wp Data dot dispatch and then we're going to get into that dispatch Function on a if we get into the dispatch function, we're going to say get the core edit Dash post and then at the end of the day we're going to say to go the feature and Inside that function of toggling the feature what feature we're going to toggle we're going to toggle the full screen mode So we're basically saying just flip the switch what we did simply by the click of the button We are now writing it in the code for it to work So the last thing that we're going to do to our code is actually just check if we are in the admin Then we should run this function. So I'm going to do that if Function and say is admin so if we are in the admin area Then we should check this function because we don't need it on the external bit, so I'll move this in here and then save and I come back here and reload And just like that with our code. We're able to have our old editor showing up again We can access our admin dashboard. We can access all the other options And we are good to go So if you don't want to write this code and you're just happy with copying it and testing it either in your theme Or in a small plugin I'm going to drop a link in the description below So you can pick it off my github and just download it and activate the plugin simply On your website and it will work. So thank you for watching and enjoy your one press 5.4 and goodbye