# Hide Screen Options for Non-Administrators

> Hides the Screen Options tab for everyone except administrators, so other users cannot rearrange or hide admin panels.

- Type: PHP
- Runs: Admin only
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: screen-options, roles, clean-up
- Author: WPIDE Team
- Installs: 6
- Updated: 2026-10-28
- Page: https://wpide.com/library/hide-screen-options-for-non-admins/

## Code

```php
add_filter( 'screen_options_show_screen', function ( $show ) {
    return current_user_can( 'manage_options' ) ? $show : false;
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Screen Options for Non-Administrators" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
