WP Admin -> s2Member -> General Options -> Login Welcome Page) to redirect users after logging in.
The Special Redirection URL supports a few Replacement Codes, including %%current_user_login%%, which is replaced with the username of the person logging in.
So, if your custom admin panel script was located at http://example.com/admin-panel.php, you could configure a Special Redirection URL for the Login Welcome Page to redirect to http://example.com/admin-panel.php?user=%%current_user_login%%.
Then, your admin-panel.php script could read the current user with $_GET['user'].
Does that make sense?Statistics: Posted by Raam Dev — December 29th, 2011, 3:20 pm
]]>