Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #6693, comment 3


Ignore:
Timestamp:
10/29/2015 09:46:15 PM (4 years ago)
Author:
slaFFik
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6693, comment 3

    initial v1  
    11I had the same task in one of my plugins.
    2 The hardest part is such:
     2The hardest part is such (the decision):
    33We have `wp_delete_post($post_id, $force = true)` - which is totally ok, its hook passes `$post_id` and we can completely delete activity.
    44But there is also a `wp_trash_post()` or `wp_delete_post($post_id, $force = false)` - and we don't have a `trash` for activity entries.