Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here is some information that could help, or at least should be put in the open more.

    I was var_dump()-ing the $current_user and I noticed that $current_user->user_level is not set or even in the object/array. I don’t know if this is a bug or not. I was hooking off of this and getting great failures. Subscriber should be user_level 0, right?

    So, if you, or a plugin / function / etc is hooking off of this and subscribers are in the mix you should be getting (silent) fail.

    There is this boolean in the $current_user called “level_0” – so that is (probably) a clear hook available.

    Feedback welcome, I consider this a bug, but I am not sure on the intent or implications.

    Full on ditto here. Looking for a simple solution. New subscribers are not logging in ver 2.8.2.

    I have been sniffing actions and other data and I am stumped.

    Other roles have no problem.

    This gets you close. The “Redirect” can be put in the login form and redirect people where they need to be…

    As for switching on role, that is a little more complicated but hardly impossible.

    I often use a simple solution, 2 login forms. The native /wp-admin/ is kept but I add a new directory at site.com/login/ that is a copy (the HTML is fine) of the /wp-admin/ page with the redirect added.

    All your subscribers will go to /login/ and others to /wp-admin//

    Here is the hidden input:

    <input type="hidden" value="/index.php" name="redirect_to"/>

    Hope that helps a little.

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