Login Redirect To Last Page

I have read many forum posts on this topic, but none have provided me with a clear answer.

I DO have S2Member Pro but I DO NOT want to use the login sidebar widget.

I want members to be automatically redirected to the last page they were on after they log in using my site’s wp-lohn.php page

How can I accomplish this? Thanks in advance.

You need to understand the implications of what you’re asking for.

  1. How is the wp-login.php page supposed to know where you were before? That’s the reason for a sidebar widget: it’s on the very page to which the user is to be redirected.

  2. The wp-login.php page has nothing to do with s2Member. It’s just the default WP login page.

@tomdunn This needs custom code (and I can do it for you), and is not related to s2M, as s2M uses WP member-related mechanisms like “login”, “logout”, info storage and others.