WP-Member login redirects
-
There are two ways in which the user could login in my blog. The first way is through the login function in the side bar. The 2nd one is when the user wants to post a question on the forum. Right now when the user logs in by both ways, they are redirected to the home page. However, I want the user logging in through the the side bar to be directed to the home page, while the users logging in through the forum side to be redirected to the ask a question page. How do i do that?
At the moment this the filter i used,
function my_login_redirect( $redirect_to, $user_id )
{
if(!is_front_page())
return ‘https://intern.tradeasia.us/blog/’;
else
return ‘https://intern.tradeasia.us/blog/dwqa-ask-question/’;
}
However, it did not work….My site — https://intern.tradeasia.us/blog/
- The topic ‘WP-Member login redirects’ is closed to new replies.