Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to save deleted activity?

@r-a-y

Keymaster

Check out the bp_activity_action_delete_activity() function in bp-activity.php.

There’s a hook where you can grab the activity ID before it’s deleted:
`/* Call the action before the delete so plugins can still fetch information about it */
do_action( ‘bp_activity_action_delete_activity’, $activity_id, $activity->user_id );`

You could potentially archive this information into a separate table for your own usage.

If you’re not familiar with WordPress hooks, check out the Plugin API codex page:
https://codex.wordpress.org/Plugin_API

Skip to toolbar