Problem:
I have a front end page that contains "edit" links in order to encourage contributors to update/amend the information on my site. However, these links for users who arent logged in, point to the login/register page. Id like (if possible) to implement the following functionality.
1. Guest user clicks on EDIT
2. They are sent to the login page
3. They log in, and then are redirected back to the page they were trying to edit in the first place
Solution:
The WordPress built-in login form supports URL parameter "redirect_to", use it you can redirect logged in user to the specific URL, for example:
https://toolset.com/forums/topic/redirecting-user-post-login-to-the-desired-cred-form/#post-914559
Relevant Documentation:
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
Ce sujet contient 4 réponses, a 2 voix.
Dernière mise à jour par Il y a 6 années et 5 mois.
Assisté par: Luo Yang.