Skip to content

activitypub_sent_to_inbox

github-actions[bot] edited this page Aug 18, 2025 · 8 revisions

Fires after an Activity has been sent to an inbox.

Auto-generated Example

/**
 * Fires after an Activity has been sent to an inbox.
 *
 * @param array  $result 
 * @param string $inbox 
 * @param string $json 
 * @param int    $actor_id 
 * @param int    $outbox_item_id 
 * @return array The filtered value.
 */
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;
}
add_filter( 'activitypub_sent_to_inbox', 'my_activitypub_sent_to_inbox_callback', 10, 5 );

Parameters

  • array $result The result of the remote post request.
  • string $inbox The inbox URL.
  • string $json The ActivityPub Activity JSON.
  • int $actor_id The actor ID.
  • int $outbox_item_id The Outbox item ID.

Files

\do_action( 'activitypub_sent_to_inbox', $result, $inbox, $json, $outbox_item->post_author, $outbox_item_id )

← All Hooks

Users

Developers

Clone this wiki locally