i want to display welcome message or redirect the user to my custom template when the user login for the first time only. After the user can visit the regular page of the site.
Whenever a new user is created, this function will add a custom field with value 1.
The next function will check if it's the first login and redirect the user.
Tip: The function_check_login_redirect knows the user. You can even offer the user a custom info or call to action.