WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lahoti
    Member
    Posted 1 year 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

    Thanks

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

  2. lahoti
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic