How to restrict Permalink Manager to administrators only?

If you would like to block the access to URI Editor, please set the role capability that would allow to edit the custom permalinks. You can find “URI Editor role capability” field in the plugin settings.

Alternatively, you can also use the following code snippet and paste it to functions.php file in your child theme directory.

The code below is only a basic sample and you can easily adjust or extend it. For instance, you can change the capability type in current_user_can() function from “administrator” to: “editor“, “edit_theme_options” or another capability.

Here you can find a full list of all default capabilities.

Go up