# Hide Permalink Settings From Site Admins

> Removes Settings > Permalinks from subsite dashboards for non-super-admins so URL structures stay consistent across the network.

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

## Code

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

add_action( 'admin_menu', function () {
    if ( ! is_super_admin() ) {
        remove_submenu_page( 'options-general.php', 'options-permalink.php' );
    }
}, 999 );

add_action( 'load-options-permalink.php', function () {
    if ( ! is_super_admin() ) {
        wp_die( esc_html__( 'Permalink settings are managed by the network administrator.' ), 403 );
    }
} );
```

## Notes

Combine with the new-site defaults snippet to set the structure for every new site.

## How to use it

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