# Let Editors Manage Redirects in Redirection

> Gives editors access to the Redirection plugin's screens so they can add and fix redirects themselves, without making them administrators.

- Type: PHP
- Runs: Run everywhere
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: redirection, permissions, editors
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/redirection-editors-manage/

## Code

```php
add_filter( 'redirection_role', function ( $role ) {
    return defined( 'REDIRECTION_VERSION' ) ? 'edit_others_posts' : $role;
} );
```

## Notes

Change edit_others_posts to the capability of the role you want to allow. Does nothing if Redirection is not active.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Let Editors Manage Redirects in Redirection" 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/
