Redirect users after logging in with account modal

Many users have asked us to provide a way of redirecting users after they have successfully logged in using the account header modal. Here’s a little PHP filter that can help you achieve just that!

Redirecting to homepage

add_filter('blocksy:account:modal:login:redirect_to', function ($url) {
 return home_url();
});

Redirecting to custom page

add_filter('blocksy:account:modal:login:redirect_to', function ($url) {
 return home_url() . '/contact-us/';
});

Not the solution you are looking for?

Please check other articles or open a support ticket.