# Hide Import and Export From Site Admins

> Removes Tools > Import and Tools > Export from subsite dashboards for non-super-admins and blocks the screens, keeping content moves in the network team's hands.

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

## Code

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

add_action( 'admin_menu', function () {
    if ( ! is_super_admin() ) {
        remove_submenu_page( 'tools.php', 'import.php' );
        remove_submenu_page( 'tools.php', 'export.php' );
    }
}, 999 );

$wpide_block = function () {
    if ( ! is_super_admin() ) {
        wp_die( esc_html__( 'Importing and exporting is handled by the network administrator.' ), 403 );
    }
};

add_action( 'load-import.php', $wpide_block );
add_action( 'load-export.php', $wpide_block );
```

## Notes

""

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Import and Export 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/
