cmikeseiler / cas_ldap_wp_plugin

CAS/LDAP Authentication Plugin for Wordpress - replaces local authentication
3 stars 0 forks source link

Question about default roles used for redirection after authentication #1

Open jlethuau opened 10 years ago

jlethuau commented 10 years ago

Hi, I'm evaluating this plugin because I need something like this for a project. I just wonder if it's possible to manage different redirections for all 5 WP default roles?

eg:

Thanks in advance for your reply ;)

cmikeseiler commented 10 years ago

You should be able to add the extra redirection as long as you check if the user has certain capabilities based on their role. This has a complete list: http://codex.wordpress.org/Roles_and_Capabilities

For editor, you might use "delete_others_pages" and for author perhaps "delete_posts." Because a few of the role functions overlap, you may need to use a few to make sure you get the right role.

Then you would only need to add in the extra data fields, and the extra form fields so that you can assign the redirects via the plugin.