Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_activity_add to update existing activity?

  • Avatar of James
    James
    Participant

    @janismo

    Hi,

    I have new activities recorded using bp_activity_add, when new custom post is added or edited. Is there any function/way to modify existing activity, when my custom post is edited?

    Basically, I want to keep existing activity/id, but change its content, item_id and action. Maybe something like bp_activity_update. I thought I could use bp_activity_add with a specified ID, but it doesn’t work.

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of James
    James
    Participant

    @janismo

    ok, I got it. You have to pass the ID.

    Avatar of James
    James
    Participant

    @janismo

    is there a way to get activity ‘date_recorded’ outside of the activity loop? thanks!

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

You must be logged in to reply to this topic.