-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_inbox
github-actions[bot] edited this page Jul 23, 2025
·
10 revisions
ActivityPub inbox action.
add_filter(
'activitypub_inbox',
function (
array $object,
int $user_id,
string $type,
Activitypub\Activity\Activity $activity = null
) {
// Your code here
return $object;
},
10,
4
);
-
array
$object
The object. -
int
$user_id
The id of the local blog-user. -
string
$type
The type of the activity. -
Activitypub\Activity\Activity|null
$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.