Skip to content

activitypub_handled_update

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

Fires after an Update activity has been handled.

Auto-generated Example

/**
 * Fires after an Update activity has been handled.
 *
 * @param array            $activity 
 * @param Activitypub\null $user 
 * @param int|array        $state 
 * @param WP_Comment       $reaction 
 * @return array The filtered value.
 */
function my_activitypub_handled_update_callback( array $activity, Activitypub\null $user, int|array $state, WP_Comment $reaction = null ) {
    // Your code here.
    return $activity;
}
add_filter( 'activitypub_handled_update', 'my_activitypub_handled_update_callback', 10, 4 );

Parameters

  • array $activity The complete Update activity data.
  • Activitypub\null $user Always null for Update activities.
  • int|array $state 1 if comment was updated successfully, error data otherwise.
  • WP_Comment|null $reaction The updated comment object if successful, null otherwise.

Files

\do_action( 'activitypub_handled_update', $activity, null, $state, $reaction )

← All Hooks

Users

Developers

Clone this wiki locally