Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get the Last Active data


  • Magnuspil
    Participant

    @magnuspil

    Hey!

    I want to get the last active data for an seller on my marketplace. The system uses WC Vendor with buddypress integration. I basically want to display: Active: Days, hours or Active now – how can we do so?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

  • modemlooper
    Moderator

    @modemlooper

    bp_get_user_last_activity( $user_id ), though its for last activity item added and not an indicator of site access.


    Magnuspil
    Participant

    @magnuspil

    @modemlooper : Thanks – but what do you mean by “…Item added and not an indicator of site access”?

    Also, would $user_id get the current post authors info or would I have to define $user_id somewhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar