-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_pre_send_to_inboxes
github-actions[bot] edited this page Jul 29, 2025
·
9 revisions
Fires before sending an Activity to inboxes.
add_filter(
'activitypub_pre_send_to_inboxes',
'my_activitypub_pre_send_to_inboxes_callback',
10,
3
);
function my_activitypub_pre_send_to_inboxes_callback(
string $json,
array $inboxes,
int $outbox_item_id
) {
// Your code here.
return $json;
}
-
string
$json
The ActivityPub Activity JSON. -
array
$inboxes
The inboxes to send to. -
int
$outbox_item_id
The Outbox item ID.
\do_action( 'activitypub_pre_send_to_inboxes', $json, $inboxes, $outbox_item_id )
Follow @[email protected] for updates and news.