1. Home
  2. Docs
  3. Filters & Hooks
  4. How to restrict Permalink Manager to administrators only?

How to restrict Permalink Manager to administrators only?

If you would like to block the access to Permalink Manager “URI Editors” and additional settings, please 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.

Was this article helpful to you? Yes No