• Resolved stevemoretz

    (@stevemoretz)


    Hi I have made my own authentication page and system using php and elementor.I have also made my own verification system,which uses meta_keys on user,How can I check in php if a particular user was made with this plugin so I can ignore the verification system for these users?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @stevemoretz

    If that is enough for your verification if the WordPress account has a social account linked to, then you could check if the User ID of the WordPress account can be found in the ID field of our <wp-preffix>social_users (e.g.: wp_social_users) table. Since this is the table where we store the link between the WordPress account and the social media account.
    ( Please note that, users can link social media accounts to existing WordPress accounts, so only having and ID match itself doesn’t confirm that the WordPress account was also registered with Nextend Social Login. )

    If you want to be more precise, so you only want to skip the verification if the WordPress account was registered with Nextend Social Login, then in the same database table I mentioned above, you should also check the value of “register_date” field.
    If the action was a registration, then this field contains a valid date otherwise 0 values e.g.: 0000-00-00 00:00:00

    Some tip:
    If you just started using Nextend Social Login, so there aren’t a lot of social accounts on your site, yet. Then you could make things much easier by storing a user meta for the user when they register with social login.
    This can be done over the “nsl_register_new_user” action:

    If you check the documentation and search for the keyword “nsl_register_new_user” you will also find code examples of how you can use this action to set user meta.

    Best regards,
    Laszlo.

    Thread Starter stevemoretz

    (@stevemoretz)

    Fantastic explanations,never had such a complete reply from anybody anywhere,Thanks for all the details provided.You’re amazing.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @stevemoretz

    I am glad I could help! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Check if user was signed up using this plugin’ is closed to new replies.