• Hi there,
    The more I use the plugin, the more I like it πŸ™‚ However, here is something I can’t achieve although it didn’t sound complicated at first look :/

    I use OneAll to register and log in people with their Google account. However, some people have multiple Google accounts, and sometimes, they try to login on my site (through OneAll) with their wrong Google account. As a result, OneAll registers a new user.

    So I relied to the (great) oa_social_login_action_before_user_insert hook to try to do the following: when a user is up to be registered as a new user, I would like to display a warning pop up saying something like “Hey, you are up to register with this xxxx Google account. If you are a new user, just press “Continue” to do so. If you are already registered with us with another Google account, you should better switch to it and log-in again.”

    Actually, I use the oa_social_login_action_before_user_insert hook in function.php but I am unable to display the popup and propose the “continue” action which would return from my function and would actually register the new user. (However I am able to display and propose the second action which to exit the function and redirect to the OneAll login.)

    Maybe I should not use php but javascript, but how? with an onload call to display the popup automatically (in a <body> of an iframe?), or from the OneAll js library? And how to close the popup and continue the registration when this is a real new user?

    It first looked not so tricky but it actually is. Could someone help me out?

    Thanks in advance!
    Yves.

    https://wordpress.org/plugins/oa-social-login/

  • The topic ‘How to filter "false" registrations with oa_…before_user_insert hook?’ is closed to new replies.