I would like to redirect my logged in users automatically to a next page if they press a button on my menu. I would like to make it that if you’re not logged in you’ll get on a registration page and when you’re logged in you’ll get on the correct page (which is a gravity form).
How can I do this?
I want them to get redirected when they click on the “plaats een opdracht” page. If not logged in they’ll be redirected to a registration page.
3 Answers
You can use login redirect filter login_redirect to redirect to the page you want to redirect.
Or you can use if menu plugin to add the conditional menu on login and logout having the same name.