-
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 for specific activity types.
add_filter(
'activitypub_inbox_',
'my_activitypub_inbox__callback',
10,
3
);
function my_activitypub_inbox__callback(
array $data,
int $user_id = null,
Activitypub\Activity|\WP_Error $activity
) {
// Your code here.
return $data;
}
-
array
$data
The data array. -
int|null
$user_id
The user ID. -
Activitypub\Activity|\WP_Error
$activity
The Activity object.
\do_action( 'activitypub_inbox_' . $type, $data, $actor->get__id(), $activity )
\do_action( 'activitypub_inbox_' . $type, $data, $user->get__id(), $activity )
Follow @[email protected] for updates and news.