-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_inbox
github-actions[bot] edited this page Sep 24, 2025
·
6 revisions
Fires after an ActivityPub Inbox activity has been handled.
/**
* Fires after an ActivityPub Inbox activity has been handled.
*
* @param array $data
* @param int $user_id
* @param bool $success
* @param WP_Error|int $id
* @return array The filtered value.
*/
function my_activitypub_handled_inbox_callback( array $data, int $user_id, bool $success, WP_Error|int $id ) {
// Your code here.
return $data;
}
add_filter( 'activitypub_handled_inbox', 'my_activitypub_handled_inbox_callback', 10, 4 );
-
array
$data
The ActivityPub activity data. -
int
$user_id
The local user ID. -
bool
$success
True on success, false otherwise. -
WP_Error|int
$id
The ID of the inbox item that was created, or WP_Error if failed.
\do_action( 'activitypub_handled_inbox', $data, $user_id, $success, $id )
Follow @[email protected] for updates and news.