• Resolved Jakub

    (@kaderavek)


    Hi Damian,

    is there a way, how to redirect user to special url after successfull registration (first login). I look to code a I didn’t find it.

    If you want I can add I to plugin a send you my revision but I don’t want loose my changes after update plugin

    Thanks for message

    https://wordpress.org/plugins/wp-facebook-login/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Damian

    (@timersys)

    You can use a filter for that.

    In your functions.php

    add_filter( 'flp/redirect_url' , 'register_redirect_url');
    function register_redirect_url( $url ) {
    if ( isset( $GLOBALS['pagenow'] ) &&  $GLOBALS['pagenow']== 'wp-login.php' && isset( $_GET['action']) && 'register' == $_GET['action']  )
    			$url = 'your url here';
    
    return $url;
    }

    Haven’t tested but it should work

    Thread Starter Jakub

    (@kaderavek)

    Hi Damian,

    this should work if user register in register page, but I have same button to register and login in one page in theme so I can’t use url or get param to detect if user want login or register.

    Have you had another idea?

    Thanks a lot

    Plugin Author Damian

    (@timersys)

    Mmmm I think thre is no way to do that but give me some time to think what I can do to solve it.

    Regards

    Plugin Author Damian

    (@timersys)

    Hi Jakub sorry I forgot about this feature and didn’t include it in last release. But I did added it to develop version on github in case you want to grab it https://github.com/timersys/facebook-login/tree/develop

    Basically you can do the following now:

    add_filter( 'fbl/success_status' , 'register_redirect_url');
    function register_redirect_url( $status ) {
        if( isset( $status['method'] && 'registration' == $status['method'] ) {
            $status['redirect'] = 'your_url_here';
        }
        return $status;
    }

    Hi Damian,
    I have the same issue with the redirect after the Facebook login on the Woocommerce Login/Register page.
    I have purchased FB Login Pro.
    When will you release a new version including this feature?
    I’d like to avoid that users get redirected to the Woocommerce my-account page.

    Thanks!

    Plugin Author Damian

    (@timersys)

    Hi, on 1.2 of premium version is included. Simple paste the code above into your functions.php and replace ‘your_url_here’ with the url you want

    Regards

    Plugin Author Damian

    (@timersys)

    dusauton please use premium support form to get faster responses Regards

    Hi Damian,

    I am trying to redirect user after they use the facebook login function.

    Used the code mentioned above. Added the code to functions.php crashes my entire site.

    Is there something i missed?

    Hi Damian,

    I am trying to redirect user after they use the facebook login function.

    Used the code mentioned above. Added the code to functions.php crashes my entire site.

    Is there something i missed?

    There was a bug in the facebook-login.js file that prevented redirect from working. I fixed it here:
    https://github.com/krewmarco/facebook-login

    Plugin Author Damian

    (@timersys)

    @mzirino thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Redirect after first login (register)’ is closed to new replies.