If you want to disable the screen tab from Admin panel, then this tutorial is specially designed for you. Keep your close attention in this tutorial as I am going to explain how to disable the screen options button in WordPress admin area while add or edit posts screen.
Copy the below code and paste it at the end of the functions.php file and save it.
1 2 3 4 5 6 7 8 9 10 11 12 |
/** * Remove the screen tab from WordPress Admin screen */ function wpb_remove_screen_options() { if(!current_user_can('manage_options')) { return false; } return true; } add_filter('screen_options_show_screen', 'wpb_remove_screen_options'); |
Liked this tutorial? Do Like & share with your friends 🙂
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: wordpress beginner, wordpress beginners, wordpress beginners tutorial, wordpress tutorial, wordpress tutorial for beginner, wordpress tutorial for beginners, wordpress tutorials, wordpress tutorials for beginners, wordpress tutorils