Skip to content

activitypub_handled_inbox

github-actions[bot] edited this page Oct 24, 2025 · 8 revisions

Fires after an ActivityPub Inbox activity has been handled.

Auto-generated Example

/**
 * Fires after an ActivityPub Inbox activity has been handled.
 *
 * @param array                          $data 
 * @param array                          $user_ids 
 * @param string                         $type 
 * @param Activitypub\Activity|\WP_Error $activity 
 * @param WP_Error|int                   $result 
 * @param mixed $string_context_the_context_of_the_request 
 * @return array The filtered value.
 */
function my_activitypub_handled_inbox_callback( array $data, array $user_ids, string $type, Activitypub\Activity|\WP_Error $activity, WP_Error|int $result, $string_context_the_context_of_the_request ) {
    // Your code here.
    return $data;
}
add_filter( 'activitypub_handled_inbox', 'my_activitypub_handled_inbox_callback', 10, 6 );

Parameters

  • array $data The data array.
  • array $user_ids The user IDs.
  • string $type The type of the activity.
  • Activitypub\Activity|\WP_Error $activity The Activity object.
  • WP_Error|int $result The ID of the inbox item that was created, or WP_Error if failed.
  • $string_context_the_context_of_the_request Other variable names: $context

Files

\do_action( 'activitypub_handled_inbox', $data, $user_ids, $type, $activity, $result, $context )

← All Hooks

Users

Developers

Clone this wiki locally