• Resolved uouapps

    (@uouapps)


    Hi,
    I was trying to redirect user to specific url after registering. I used code for new user registration:

    //Redirection for new users
    function oa_social_login_set_redirect_url_new_users ($url, $user_data)
    {
    	//Force the url to something else
    	$url = 'https://my-website.com/welcome-new-user/';
    
    	//New users will be redirected here
    	return $url;
    }
    add_filter('oa_social_login_filter_registration_redirect_url', 'oa_social_login_set_redirect_url_new_users', 10, 2);

    It is not working. The hook for returning user is working fine. But for new user it is not working. Please help me to fix this.

    https://www.ads-software.com/plugins/oa-social-login/

  • The topic ‘url redirection for new user registration’ is closed to new replies.