Last active
August 8, 2022 20:37
-
-
Save MariaJackson1/5ac59c1dbd9b709c9be0a48767395cd7 to your computer and use it in GitHub Desktop.
Redirect After Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://stackoverflow.com/questions/8127453/redirect-after-login-on-wordpress/8127629#8127629 | |
| Put in functions.php change '/members-home-page' to the slug of the page you want them to go to | |
| // Redirect Logged in Users to Members Only Homepage | |
| function admin_default_page() { | |
| return '/members-home-page'; | |
| } | |
| add_filter('login_redirect', 'admin_default_page'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment