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.
Opens WPIDE on
Code
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 add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.