wp_login_form won’t redirect

Question

I’m trying to change this particular part in order to redirect after login to a specific page on my site. Let’s say as an example: example.com/test. I replaced the "’/?s=&category=&location-address=&a=true’" part with the absolute path of the page i want to redirect to, but that doesn’t seem to do it. It just keeps redirecting to the frontpage. Anything i’m missing here?

$result .= wp_login_form( array( 'redirect' => get_home_url().'/?s=&category=&location-address=&a=true', 'form_id' => 'ait-login-form-widget', 'echo' => false, 'remember' => false,) );

I followed this tutorial: https://www.ait-themes.club/knowledge-base/how-to-change-login-redirecting/

0
Matthias 2 years 2020-10-25T23:10:27-05:00 0 Answers 15 views 0

Leave an answer

Browse
Browse