Login but dont create user

I want login using social network, but I dont want that wordpress create user (if not exists). Is it possible?

In my site, only users added on wordpress will login using social network

thanks

Best Answer

  • Fred_PinelFred_PinelMember
    Answer ✓
    Hi,
    The following will abort the registration.
    Place it inside your theme's functions.php.
    add_action('oa_social_login_action_before_user_insert', 'someabort', 10, 2); function someabort() { wp_redirect(home_url()); exit; }Regards

Answers

  • Hi,
    Yes, that is possible.
    You need to add a hook function to stop the registration.
    We can post details, if you wish.

    Regards
  • Hi,

    Yes, I need more details
  • Hi,

    Dont work for me....users still been created after social login

    you can see in attach...and if you want, go at print URL and connect with your google account

    image
  • Hi,
    Tested your site, and it did seem to prevent user registration.
    Do you still have the problem?

    Regards
  • Hi...works fine

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.