-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_inbox
github-actions[bot] edited this page Jul 23, 2025
·
29 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$objectThe object. -
int$user_idThe id of the local blog-user. -
string$typeThe type of the activity. -
Activitypub\Activity\Activity|null$activityThe 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.