[buddypress-trac] [BuddyPress] #3003: Add an action to detect first login

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Jan 15 18:18:34 UTC 2011


#3003: Add an action to detect first login
--------------------------+-----------------
  Reporter:  DJPaul       |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  1.3
 Component:  Core         |    Version:
Resolution:               |   Keywords:
--------------------------+-----------------

Comment (by DJPaul):

 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.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3003#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list