-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_handled_undo
github-actions[bot] edited this page Sep 24, 2025
·
9 revisions
Fires after an ActivityPub Undo activity has been handled.
/**
* Fires after an ActivityPub Undo activity has been handled.
*
* @param array $activity
* @param int $user_id
* @param bool $success
* @param WP_Comment|string $result
* @return array The filtered value.
*/
function my_activitypub_handled_undo_callback( array $activity, int $user_id, bool $success, WP_Comment|string $result ) {
// Your code here.
return $activity;
}
add_filter( 'activitypub_handled_undo', 'my_activitypub_handled_undo_callback', 10, 4 );
-
array
$activity
The ActivityPub activity data. -
int
$user_id
The local user ID. -
bool
$success
True on success, false on failure. -
WP_Comment|string
$result
The target, based on the activity that is being undone.
\do_action( 'activitypub_handled_undo', $activity, $user_id, $success, $result )
Follow @[email protected] for updates and news.