-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_undo
github-actions[bot] edited this page Aug 18, 2025
·
12 revisions
Fires after an "Undo" activity has been handled.
/**
* Fires after an "Undo" activity has been handled.
*
* @param array $activity
* @param int $user_id
* @param Activitypub\mixed $state
*/
function my_activitypub_handled_undo_callback( array $activity, int $user_id = null, Activitypub\mixed $state ) {
// Your code here.
}
add_action( 'activitypub_handled_undo', 'my_activitypub_handled_undo_callback', 10, 3 );-
array$activityThe JSON "Undo" Activity. -
int|null$user_idThe ID of the user who initiated the "Undo" activity otherwise null. -
Activitypub\mixed$stateThe state of the "Undo" activity.
do_action( 'activitypub_handled_undo', $activity, $user_id, $state )Follow @[email protected] for updates and news.