Title: Hook Needed
Last modified: January 17, 2024

---

# Hook Needed

 *  Resolved [Rajon Ahmed](https://wordpress.org/support/users/engrrajonahmed/)
 * (@engrrajonahmed)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/hook-needed-4/)
 * Hi there,
   thanks for this awesome plugin. I tried it. But I think I need your
   suggestions.
 * Well, I use Gravity Forms and add-ons for registration purposes because it’s 
   a little bit complicated to create a registration form using your plugin.
 * However, I want to allow my users to connect their social accounts with our website
   for easy login. But we don’t want them to register using social IDs.
 * I am pretty sure it can be done but we will need custom coding as your plugin
   might not offer something like this.
 * So, in that case, I need an appropriate hook that your plugin fires while a user
   tries to log in. So that we can check if the email already exists in our DB or
   not. If it does not exist then the system will redirect them to the Sign Up page
   and if exists then the user will be logged in.
 * Thank you!
   Best RegardsR. Ahmed

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Robert](https://wordpress.org/support/users/robertnextendweb/)
 * (@robertnextendweb)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/hook-needed-4/#post-17350892)
 * Hello [@engrrajonahmed](https://wordpress.org/support/users/engrrajonahmed/)!
 * **Well, I use Gravity Forms and add-ons for registration purposes because it’s
   a little bit complicated to create a registration form using your plugin.**
   By
   default we show the social login buttons on the default WordPress login page (/
   wp-login.php). If you have a customized form, in that case you can use the shortcode
   of our buttons:[https://nextendweb.com/nextend-social-login-docs/usage/](https://nextendweb.com/nextend-social-login-docs/usage/)
   To publish them where you need them.
 * **However, I want to allow my users to connect their social accounts with our
   website for easy login. But we don’t want them to register using social IDs.**
   
   If I understand correctly, you do not want people to be able to register with
   Nextend Social Login, and only be able to use it as a login option who have already
   joined, correct?If that is the case, then by default we inherit the default WordPress
   membership setting, but we also have our own Membership option on the General
   tab in the Global settings:[https://nextendweb.com/nextend-social-login-docs/global-settings/](https://nextendweb.com/nextend-social-login-docs/global-settings/)
   Here you will find the “Membership” option, which you can set to “Disabled”. 
   Like this only those users can log in with the social accounts who match any 
   of the following criteria:
    1. The social profile’s email address is already used as the email address of any
       WordPress user
    2. The user already linked their social media account at their profile (already
       connected users can use the link button, by default on the profile edit page,
       to link a social media account to their WordPress account)
 * **So, in that case, I need an appropriate hook that your plugin fires while a
   user tries to log in.**
   Please note that we cannot provide support for custom
   coding, but in the developer docs:[https://nextendweb.com/nextend-social-login-docs/backend-developer/](https://nextendweb.com/nextend-social-login-docs/backend-developer/)
   You can find actions and filters to override different behaviours of the plugin.
   You can also take a look at this example:[https://nextendweb.com/nextend-social-login-docs/backend-developer/#prevent-registration](https://nextendweb.com/nextend-social-login-docs/backend-developer/#prevent-registration)
   This example won’t allow registration with certain email domains (in the example
   Google), but you could use this as the base for your custom code to check the
   email.
 *  Thread Starter [Rajon Ahmed](https://wordpress.org/support/users/engrrajonahmed/)
 * (@engrrajonahmed)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/hook-needed-4/#post-17350900)
 * Hello Robert,
 * Thanks for the quick reply.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hook Needed’ is closed to new replies.

 * ![](https://ps.w.org/nextend-facebook-connect/assets/icon.svg?rev=3336394)
 * [Nextend Social Login and Register](https://wordpress.org/plugins/nextend-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-facebook-connect/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rajon Ahmed](https://wordpress.org/support/users/engrrajonahmed/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/hook-needed-4/#post-17350900)
 * Status: resolved