Arrow

Redirect plugin and User Role Editor | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Redirect plugin and User Role Editor
January 17, 2011
12:50 pm
Titus
Guest

Hi there,

Thanks of all first for the great plugin! So simple and so great!
One question though:

I have some users under the role "EDITOR" that I would not like to have access to the plugin. Unfortunately, in the "USER ROLE EDITOR" plugin, I can't find a reference to the Redirect plugin.

I was wondering if you could help me, WP 3.0.4 etc. all of the most recent basically...

This is the link to the very popular user role editor:
http://wordpress.org/extend/pl.....le-editor/

Thanks for your help,
Titus

January 20, 2011
11:28 pm
Peter
Admin
Forum Posts: 841
Offline

At about line 877 of the redirect plugin, you'll see something like:

add_options_page('Login redirects', 'Login redirects', 7, 'wplogin_redirect.php', 'rul_optionsmenu');

If you change the 7 to a specific capability (such as those listed at http://codex.wordpress.org/Rol.....pabilities), you will have more fine-grained control.

November 21, 2011
9:01 am
Joe
Guest

Is there a way to make it see the additional roles from the role editor above the typical wordpress roles?

thank you

November 21, 2011
9:14 am
Peter
Admin
Forum Posts: 841
Offline

Joe said:

Is there a way to make it see the additional roles from the role editor above the typical wordpress roles?

thank you

The plugin looks up all roles in the system as defined in the $wp_roles global variable. Therefore, it shouldn't be limited to the default roles. If you added new roles via an external plugin, it might be that the plugin isn't adding to that variable.