- This topic has 4 replies, 3 voices, and was last updated 2 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Reference to a certain page when the user is logged in
When the user is logged in, if he clicks again on a link of the “membership-login” page he will see his account information.
But I want if he is not logged in, then it will show him a login form as usual.
But if he clicked on this link, and he is logged in, then instead of staying on the page and seeing his account information, instead he will be directed to another specific page on the site.
Is it possible to do this?
Are you trying to setup After Login Redirection?
https://simple-membership-plugin.com/configure-login-redirection-members/
No.
After someone clicks on the link to log in, I manage to direct them to the page they entered after logging in.
But I’m talking about a different situation:
If someone is already logged in, and they click on the login page link.
Now, when he is logged in, he will see his account details.
But I want it to be redirected to another page that I define instead.
I would be very grateful if you could explain to me how to do this.
One possible solution could be to edit the “views/loggedin.php” file and add a redirection there. I will try to add an action hook in that file for future.
The following page has a list of functions that may be useful in certain scenarios:
https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/
Note: this requires some code customization (not simple) so this is beyond the scope of this free support forum. I don’t recommend trying to do the coding unless you are a developer.
I’m not a developer, and I don’t have the knowledge how to do this.
I would appreciate it if you could add such a function.
Maybe using the “Login redirection” script
Thank you.