# Hide the Plugins Screen From Site Admins

> Removes the Plugins menu from subsite dashboards for everyone except super admins and blocks direct visits, even if "Enable administration menus" is on in Network Settings.

- Type: PHP
- Runs: Admin only
- Category: [Multisite](https://wpide.com/library/category/multisite/)
- Tags: plugins, site-admins, permissions
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/ms-hide-plugins-menu-site-admins/

## Code

```php
if ( ! is_multisite() ) {
    return;
}

add_action( 'admin_menu', function () {
    if ( ! is_super_admin() ) {
        remove_menu_page( 'plugins.php' );
    }
}, 999 );

add_action( 'load-plugins.php', function () {
    if ( ! is_super_admin() ) {
        wp_die( esc_html__( 'Sorry, you are not allowed to manage plugins on this network.' ), 403 );
    }
} );
```

## Notes

Network-activated plugins keep running; only the screen is hidden.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide the Plugins Screen From Site Admins" 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/
