Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    See https://github.com/johngodley/redirection/#permissions for a filter to change the permissions.

    As an example (to help out those less PHP-savvy, like myself), I needed to allow access to Editors as well as Administrators. I added the following code to my functions.php file:

    //MAKE REDIRECTION TOOL AVAILABLE TO EDITORS
    add_filter('redirection_role', 'redirection_allow_editors');
    function redirection_allow_editors(){
    	return 'edit_pages';
    }

    Where edit_pages can be any editor-level capability. To allow access for different user roles, just change this capability to one that matches the desired user role.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Allow non admins access’ is closed to new replies.