-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_undo
github-actions[bot] edited this page Oct 30, 2025
·
11 revisions
Fires after an ActivityPub Undo activity has been handled.
/**
* Fires after an ActivityPub Undo activity has been handled.
*
* @param array $activity
* @param Activitypub\int[] $user_ids
* @param bool $success
* @param WP_Comment|string $result
* @return array The filtered value.
*/
function my_activitypub_handled_undo_callback( array $activity, Activitypub\int[] $user_ids, bool $success, WP_Comment|string $result ) {
// Your code here.
return $activity;
}
add_filter( 'activitypub_handled_undo', 'my_activitypub_handled_undo_callback', 10, 4 );-
array$activityThe ActivityPub activity data. -
Activitypub\int[]$user_idsThe local user IDs. -
bool$successTrue on success, false on failure. -
WP_Comment|string$resultThe target, based on the activity that is being undone.
\do_action( 'activitypub_handled_undo', $activity, (array) $user_ids, $success, $result )Follow @activitypub.blog@activitypub.blog for updates and news.