-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_handled_inbox
github-actions[bot] edited this page Aug 1, 2025
·
1 revision
Fires after an inbox item has been handled.
/**
* Fires after an inbox item has been handled.
*
* @param array $data
* @param int $user_id
* @param WP_Error|int $id
* @param Activitypub\Activity|\WP_Error $activity
* @return array The filtered value.
*/
function my_activitypub_handled_inbox_callback( array $data, int $user_id, WP_Error|int $id, Activitypub\Activity|\WP_Error $activity ) {
// Your code here.
return $data;
}
add_filter( 'activitypub_handled_inbox', 'my_activitypub_handled_inbox_callback', 10, 4 );
-
array
$data
The data array. -
int
$user_id
The ID of the local blog user. -
WP_Error|int
$id
The ID of the inbox item. -
Activitypub\Activity|\WP_Error
$activity
The Activity object.
\do_action( 'activitypub_handled_inbox', $data, $user_id, $id, $activity )
Follow @[email protected] for updates and news.