• Resolved lahoti

    (@lahoti)


    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

    Thanks

    http://wordpress.org/extend/plugins/wordpress-social-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lahoti

    (@lahoti)

    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

    Thread Starter lahoti

    (@lahoti)

    Was able to do it using register wordpress hook

    add_action(‘user_register’, ‘register_unique_id’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Perform a function when a user login’ is closed to new replies.