$redirect = site_url('/account/');
wp_login_form(array('redirect' => $redirect));
It is sending the redirect to /wp-admin/ what i do
I don't normally log in from the frontend, but I believe going to /wp-admin is the default functionality that I'm trying to override. Looking at the codex, I think I'm coding it properly
Typing the absolute URL as a string didn't work. I'm using WP User Front End Pro and Paid Membership Pro. I've searched both plugins for "wp_login_form" but am not getting any results. "redirect" gets too many results to look through. Do you know any other strings I could search for that may give me a clue if the redirect is being overridden somewhere?
So I think it had to do with the different roles. If a user is an "Administrator" role, it will always push them to /wp-admin/ if they are another role, you can control their redirect.
0 Comments
Please add nice comments or answer ....