Duplicate Snippet
Embed Snippet on Your Site
MemberPress: Redirect Users After Login Based on Roles
This code snippet customizes the login redirection in MemberPress based on user roles. Users with roles like administrator, editor, or author are redirected to the WordPress dashboard, while other users are redirected as per the default configuration.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments