• I’m writing my first plug-in and would like to have it fire right after a user registers, but I’m not sure if ‘user_register’ is the best hook to use and how to get the user_id (which I’ll use in the content the plug-in creates).

    Thanks for any tips.
    Greg

Viewing 1 replies (of 1 total)
  • You should be able to do this:

    function myuserregisterscript($user_id) {
    // stuff
    }

    $user_id is your user id.

Viewing 1 replies (of 1 total)
  • The topic ‘How to get user_id for user after registration?’ is closed to new replies.