Skip to:

Opened 13 years ago

Closed 13 years ago

#3003 closed enhancement (fixed)

Add an action to detect first login

Reported by: djpaul's profile DJPaul Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Core Keywords:


As a result of [3691], where the ability to upload an avatar before account activation was removed from the core template, we need to add an action in that fires when the user logs in for the first time.

I believe we can do this by creating the 'last_activity' user meta on login instead of on activation.

Change History (3)

#1 @DJPaul
13 years ago

The idea behind this new action hook would be to re-implement the avatar upload prompt, but (preferably) on first login.

#2 @DJPaul
13 years ago

I am about to commit a patch where I changed when the last_activity user meta is initially set. There was not a natural place to add an action without adding a new function, so:

Hook into the 'wp' action and check if the user is logged in and if get_user_meta( $bp->loggedin_user->id, 'last_activity' ) is false. This will be the first login.

#3 @djpaul
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3718]) Don't set last_activity on user account activation. Fixes #3003.

Note: See TracTickets for help on using tickets.