Duplicate Snippet
Embed Snippet on Your Site
MemberPress: Redirect Users After Login Based on Referrer
This code snippet ensures that users are redirected to a specific page after logging in from a designated login page. It checks the referrer URL and, if the login originated from the specified page, redirects the user to a custom destination. Otherwise, it follows the default login redirection.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments