Support » Plugin: Redirection » Redirect based on WP user role

  • Resolved robinwyatt

    (@robinwyatt)


    Hi. I am trying to implement a redirect rule that will check what WP user role the user has and redirect them to a specific dashboard type. For example, if the user role is ‘Founder’ then ~/dashboard will redirect to ~founder-dashboard, whereas if the user role is ‘Investor’ then ~/dashboard will redirect to ~investor-dashboard. However, after setting up the redirect rules, every time I enter ~/dashboard I am sent to my WP Dashboard at ~/wp-admin. What might I be doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter robinwyatt

    (@robinwyatt)

    Just an update to say that I realised that I has mis-assigned the roles I was testing with, so I have partially fixed this. However, it seems I’m only able to apply this for one user role, not for multiple user roles. I had set up three redirection instructions, as shown in the screenshots here and here. The first one works, but the second and third do not.

    Plugin Support mixha

    (@mixha)

    Hi @robinwyatt ,
    I would advise that you double check if each rule has different/appropriate role assigned (you can edit them from the redirection rules list);
    Try it out with the adequate WP accounts (proper user roles).

    Also, you can forward your rules list by clicking on “Export list” button, that will download the file, which you can forward via mail to support at redirection dot pro, so we can check it out in detail on a test site.

    Kind regards

    Thread Starter robinwyatt

    (@robinwyatt)

    Hi @mixha,

    Many thanks for your reply. Yes, each one has roles assigned. As requested, I have exported the rules and sent them to the address you mentioned. Looking forward to the analysis!

    Warm wishes,

    Robin

    Thread Starter robinwyatt

    (@robinwyatt)

    PS Just to add that I am temporarily using another plugin called ‘Role Based Redirect’ to achieve what I need. I would prefer to use only your plugin in order to minimise chances of code conflicts in the future, so will still welcome your help in resolving this.

    Plugin Support mixha

    (@mixha)

    Hi Robin, though the team is eager to check out the issue on your side in depth, we are unable to do so with more information, as mentioned earlier. In our repeated tests with Custom User Roles, redirections are working properly. However our team will further investigate and if we find anything out we will include fix in next release.

    In case you reconsider, feel free to open a new thread.

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.