Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Disable the Screen Options Button in WordPress

Do you want to disable the screen options button in WordPress?

The screen options button allows you to show and hide elements on different pages throughout the WordPress admin area.

In this article, we will show you how to disable the screen options button in WordPress.

Disable screen options button in WordPress

Why You May Want to Disable Screen Options Button?

The screen options button is located on the top right corner of different pages in your WordPress admin area. It allows each logged-in user to show and hide items on various sections of the WordPress admin area.

Many WordPress site owners run multi-author blogs. With the screen options button, their authors may accidentally uncheck something that is important.

For example, on the posts edit screen, users can show or hide the change author field, featured image section, and more.

Screen Options settings on post edit screen in WordPress

You can control the admin view for all users by disabling the screen options button. Let’s take a look at two ways you can easily disable the screen options button in WordPress.

Method 1: Hiding the Screen Options Button with a Plugin

First thing, you should install and activate the Adminimize plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Adminimize page in your admin dashboard to configure the plugin’s settings.

Adminimize Settings

On this page, you need to click on the ‘Global Options’ link, and it will take you down to a different section of tabs.

In that tab, you need to click on the new ‘Global Options’ tab to expand it as well.

Section tabs

You will see a bunch of options to show and hide in your WordPress admin area.

You need to check the boxes next to ‘Screen Options to disable the screen options button for any specific user roles.

Deactivate screen options button

Once you are done, don’t forget to click on the ‘Update Options’ button to save your settings.

You can now visit any page in the admin area that previously had a screen options button, like the dashboard or post/page edit screens, and you will see that it is not there anymore.

Adminimize is a really powerful plugin that allows you to completely change the WordPress admin area by selectively showing or hiding even more items than just the screen options button. For more details, see our article on hiding unnecessary items from WordPress admin area with Adminimize.

Method 2: Hiding the Screen Options Button with Code

This method requires you to add code to your theme’s functions.php file. We don’t normally recommend this for anyone but advanced users because altering core files can easily break your site.

However, we will be using WPCode, which is the safest and easiest way for anyone to add code snippets to your WordPress site.

First, you will need to install the free WPCode plugin. For more information, see our step-by-step guide on how to install a WordPress plugin.

Next, you will need to visit the Code Snippets » Add Snippet page in your admin dashboard. Type ‘screen options’ into the search bar to bring up the pre-configured snippet from the WPCode library.

Simply hover over it and select ‘Use snippet.’

How to disable the screen options with WPCode

You will now see the ‘Edit Snippet’ page where all of the options are set for you.

All you have to do is toggle the switch to ‘Active’ and click ‘Update’ to disable the screen options button for all users.

Activate snippet to hide screen options tab with WPCode

However, you might want those with Administrator permissions to still be able to see the screen options button. For this, you can simply replace the code snippet in the editor with the following:

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');
This code can remove the button for all users except administrators

We hope this article helped you learn how to easily disable screen options button in WordPress. You may also want to see our guide on how to move your WordPress site from HTTP to HTTPS or the 6 best coupon code plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

9 CommentsLeave a Reply

  1. Thank you for this great tutorial. I actually need to disable the VISIT SITE option for a user. Is this possible? Any guidance will be appreciated.

    • For disabling plugins in any version, you would want to go into the plugins section of your admin area.

      Admin

  2. How to add other Columns in screen options?

    The screen options of “all posts” show columns like Author, Categories, Tags, Stats, But its not showing the column “Received internal links”

    So how i add this column “Received internal links” please help

    • If that setting was added by a plugin you would need to reach out to the plugin’s support and ask them to add that as an option in the screen options.

      Admin

  3. How can i modify my screen options on the mobile?

    – I logged in with the same user on the desktop and selected the columns that i need, i pressed apply and everything was okay.

    – I logged in to the mobile but still all the columns are still showing.

    1- Is there a way to specify what columns to view on the mobile only?
    2- Or what am i suppose to do ?

    thank you!

    • Hi Bhaskar,

      You can use the following code on a WordPress multisite to only allow Network Admin to view screen options button.

      function wpb_remove_screen_options() { 
      if(!current_user_can('manage_network')) {
      return false;
      }
      return true; 
      }
      add_filter('screen_options_show_screen', 'wpb_remove_screen_options');
      

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.