bp_get_last_activity

  • apply_filters( 'bp_get_last_activity', $last_activity )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 835
      }
      	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 );
      	}
      
      function bp_user_firstname() {
      	echo bp_get_user_firstname();
      }
      	function bp_get_user_firstname( $name = false ) {
      		global $bp;
      
      		// Try to get displayed user
      		if ( empty( $name ) )
      

Comments are closed.