bp_last_activity

  • apply_filters( 'bp_last_activity', bp_get_last_activity( $user_id ) )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 825
      		if ( isset( $bp->displayed_user->userdata->user_email ) )
      			$retval = $bp->displayed_user->userdata->user_email;
      		else
      			$retval = '';
      
      		return apply_filters( 'bp_get_displayed_user_email', esc_attr( $retval ) );
      	}
      
      function bp_last_activity( $user_id = 0 ) {
      	echo apply_filters( 'bp_last_activity', bp_get_last_activity( $user_id ) );
      }
      	function bp_get_last_activity( $user_id = 0 ) {
      		global $bp;
      
      		if ( empty( $user_id ) )
      			$user_id = $bp->displayed_user->id;
      
      		$last_activity = bp_core_get_last_activity( bp_get_user_meta( $user_id, 'last_activity', true ), __('active %s', 'buddypress') );
      
      		return apply_filters( 'bp_get_last_activity', $last_activity );
      

Comments are closed.