Allow access for editors
-
This a great plugin, simple and easy to use.
I needed to get it to work in a way which would allow Editors or users without full admin privileges to to use it.
Firstly I moved it from Settings to under the Tools menu as this can be seen by editors.
I actually that Tools rather that Settings might be a more logical place for it to live?
https://github.com/benhuson/simple-301-redirects/commit/93b909ad07a2933092e00a8adbb1f4ba526704d9Then I made the capability required to edit the redirect filterable so it’s possible to customise the capability to whatever is required:
https://github.com/benhuson/simple-301-redirects/commit/91b51175d3e41268ca74e6c994257779ec6cbc23Then you can set the appropriate capability via the filter:
function my_simple301redirects_admin_capability( $capability ) { return 'edit_pages'; } add_filter( 'simple301redirects_admin_capability', 'my_simple301redirects_admin_capability' );I’m posting this here in case anyone finds it useful but it would be great if this could be incorporated into the main plugin.
Ben
The topic ‘Allow access for editors’ is closed to new replies.