Page 1 of 1

Any way to not forward logged in members to new page?

PostPosted: July 17th, 2010, 7:12 pm
by agloop
Hello,

I am having problems with a chat plugin I have integrated with WP because of the s2Member redirect after login. Is there a way to disable this?

Currently, when you log in to the chat, the app freezes and it begins the redirect to my 'Welcome to Your Profile' page. I know this is the problem, because when I disable s2Member everything works like it should.

Also, Admin accounts work even when s2member is enabled because their accounts don't have the redirect attached.

Thanks for your help.

Zach

Re: Any way to not forward logged in members to new page?

PostPosted: July 18th, 2010, 1:59 am
by Jason Caldwell
Hi Zach. If you'd like to disable the login redirection,
you can add this line to the functions.php file for your WordPress theme.

Code: Select all
function ws_plugin__s2member_login_redirect($username = FALSE){}

* I don't recommend this however. Login redirection is designed to prevent unauthorized access to your WP Dashboard, and also to customize the landing page for Members, after they log in. This redirection is one of the core functions of s2Member. It utilizes the Login Welcome Page configured under:
s2Member -> General Options -> Login Welcome Page.