WordPress Social Login
[resolved] Perform a function when a user login (3 posts)

  1. lahoti
    Posted 3 years ago #

    Hi Milead

    In my previous login functionality I was performing some extra operations when a user registered for the first time. like creating a unique id for that person. Is it possible to run that function when someone logins through WSL
    (dont want to modify core files but if thats teh last teh option will do that)

    Please suggest



  2. lahoti
    Posted 3 years ago #

    Just to clarify:
    - I have old users with unique id - so i do not want to overwrite their unique ids
    - Hence, when someone registers/ logins for the 1st time through lets say facebook and his matching email is not there then that function should run but if matching email is there then that function shouldnt run.

    Can i use some hook to associate my function with yours

  3. lahoti
    Posted 3 years ago #

    Was able to do it using register wordpress hook

    add_action('user_register', 'register_unique_id');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Social Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic