-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_inbox
github-actions[bot] edited this page Jul 29, 2025
·
10 revisions
ActivityPub inbox action.
add_filter(
'activitypub_inbox',
'my_activitypub_inbox_callback',
10,
4
);
function my_activitypub_inbox_callback(
array $data,
int $user_id = null,
string $type,
Activitypub\Activity|\WP_Error $activity
) {
// Your code here.
return $data;
}
-
array
$data
The data array. -
int|null
$user_id
The user ID. -
string
$type
The type of the activity. -
Activitypub\Activity|\WP_Error
$activity
The Activity object.
\do_action( 'activitypub_inbox', $object, $user_id, $type, $activity )
\do_action( 'activitypub_inbox', $data, $actor->get__id(), $type, $activity )
\do_action( 'activitypub_inbox', $data, $user->get__id(), $type, $activity )
Follow @[email protected] for updates and news.