-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_sent_to_inbox
github-actions[bot] edited this page Jul 29, 2025
·
13 revisions
Fires after an Activity has been sent to an inbox.
add_filter(
'activitypub_sent_to_inbox',
'my_activitypub_sent_to_inbox_callback',
10,
5
);
function my_activitypub_sent_to_inbox_callback(
array $result,
string $inbox,
string $json,
int $actor_id,
int $outbox_item_id
) {
// Your code here.
return $result;
}-
array$resultThe result of the remote post request. -
string$inboxThe inbox URL. -
string$jsonThe ActivityPub Activity JSON. -
int$actor_idThe actor ID. -
int$outbox_item_idThe Outbox item ID.
\do_action( 'activitypub_sent_to_inbox', $result, $inbox, $json, $actor->get__id(), $outbox_item_id )Follow @[email protected] for updates and news.