August 9, 2015 at 1:00 pm
#14096
Syam Mohan
Keymaster
The code I sent you can only be executed after the plugins have been loaded. Otherwise it won’t work, since the login redirect settings comes from a plugin. Can you try to execute it in the ‘plugins_loaded’ action?
Thanks