Skip to content

activitypub_handled_update

github-actions[bot] edited this page Sep 24, 2025 · 9 revisions

Fires after an ActivityPub Update activity has been handled.

Auto-generated Example

/**
 * Fires after an ActivityPub Update activity has been handled.
 *
 * @param array                            $activity 
 * @param int                              $user_id 
 * @param bool                             $success 
 * @param array|string|int|\WP_Error|false $result 
 * @return array The filtered value.
 */
function my_activitypub_handled_update_callback( array $activity, int $user_id, bool $success, array|string|int|\WP_Error|false $result ) {
    // Your code here.
    return $activity;
}
add_filter( 'activitypub_handled_update', 'my_activitypub_handled_update_callback', 10, 4 );

Parameters

  • array $activity The ActivityPub activity data.
  • int $user_id The local user ID.
  • bool $success True on success, false otherwise.
  • array|string|int|\WP_Error|false $result The updated comment, or null if update failed.

Files

\do_action( 'activitypub_handled_update', $activity, $user_id, $success, $result )
\do_action( 'activitypub_handled_update', $activity, $user_id, $state, $actor )

← All Hooks

Users

Developers

Clone this wiki locally