Privacy hooks
This page lists the 2 hooks of this group. Each entry shows its type, the version it arrived in, where it runs, its arguments and a starting point.
addochat_conversation_deleted
ActionSince 0.1.0 Runs in src/Privacy/Cleanup.php.
Fires after conversations were deleted (retention or a privacy erasure), for clean-up of your own, such as tickets that point at them.
| Argument | Type | Description |
|---|---|---|
$ids | int[] | Conversation ids that no longer exist. |
add_action( 'addochat_conversation_deleted', function ( $ids ) {
// ...
} );
addochat_idle_close_hours
FilterSince 0.1.0 Runs in src/Privacy/Cleanup.php.
Filters after how many hours without a message an open or waiting conversation is closed. 0 never closes.
| Argument | Type | Description |
|---|---|---|
$hours | int | Hours, default 24. |
add_filter( 'addochat_idle_close_hours', function ( $hours ) {
return $hours;
} );