bp_first_activity_for_member, $user_id
bp_first_activity_for_member, $user_id
Appears in: buddypress.14.5.2
Hook Type: action
Displaying hooks found in version: buddypress.14.5.2do_action('bp_first_activity_for_member, $user_id') is found 1 times:
- /bp-core/bp-core-functions.php line 1773
* @since 1.6.0 * * @param int $user_id ID of the user whose activity is recorded. */ do_action( 'bp_first_activity_for_member', $user_id ); } // If it's been more than 5 minutes, record a newer last-activity time. if ( empty( $activity ) || ( $current_time >= strtotime( '+5 minutes', $activity ) ) ) { bp_update_user_last_activity( $user_id, date( 'Y-m-d H:i:s', $current_time ) ); }