-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_outbox_handled_delete
github-actions[bot] edited this page Mar 12, 2026
·
1 revision
Fires after content has been deleted via an outgoing Delete activity.
/**
* Fires after content has been deleted via an outgoing Delete activity.
*
* @param WP_Post|\WP_Comment $result
* @param array $data
* @param int $user_id
*/
function my_activitypub_outbox_handled_delete_callback( WP_Post|\WP_Comment $result, array $data, int $user_id ) {
// Your code here.
}
add_action( 'activitypub_outbox_handled_delete', 'my_activitypub_outbox_handled_delete_callback', 10, 3 );-
WP_Post|\WP_Comment$resultThe deleted object. -
array$dataThe activity data. -
int$user_idThe user ID.
\do_action( 'activitypub_outbox_handled_delete', $result, $data, $user_id )Follow @activitypub.blog@activitypub.blog for updates and news.