-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_pre_send_to_inboxes
github-actions[bot] edited this page Aug 18, 2025
·
8 revisions
Fires before sending an Activity to inboxes.
/**
* Fires before sending an Activity to inboxes.
*
* @param string $json
* @param array $inboxes
* @param int $outbox_item_id
* @return string The filtered value.
*/
function my_activitypub_pre_send_to_inboxes_callback( string $json, array $inboxes, int $outbox_item_id ) {
// Your code here.
return $json;
}
add_filter( 'activitypub_pre_send_to_inboxes', 'my_activitypub_pre_send_to_inboxes_callback', 10, 3 );
-
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.