Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_last_activity

  • @theredeclipse

    Participant

    Hi there,

    Function bp_last_activity is sends form “active [x days ago]” in a single string. I want to separate “active” and “[x days ago]” by <p> tag. Bus as better solution for me I want function only to display “[x days ago]”. Any advice how to do it?

    Thanks

Viewing 1 replies (of 1 total)
  • @henrywright

    Moderator

    Try echo substr( bp_get_last_activity( $user_id ), 7 ); where $user_id is the ID of the user you need to fetch last activity for.

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