Skip to content

activitypub_handled_delete

github-actions[bot] edited this page Sep 24, 2025 · 1 revision

Fires after an ActivityPub Delete activity has been handled.

Auto-generated Example

/**
 * Fires after an ActivityPub Delete activity has been handled.
 *
 * @param array             $activity 
 * @param int               $user_id 
 * @param bool              $success 
 * @param Activitypub\mixed $result 
 * @return array The filtered value.
 */
function my_activitypub_handled_delete_callback( array $activity, int $user_id, bool $success, Activitypub\mixed $result = null ) {
    // Your code here.
    return $activity;
}
add_filter( 'activitypub_handled_delete', 'my_activitypub_handled_delete_callback', 10, 4 );

Parameters

  • array $activity The ActivityPub activity data.
  • int $user_id The local user ID.
  • bool $success True on success, false otherwise.
  • Activitypub\mixed|null $result The result of the delete operation (e.g., WP_Comment object or deletion status).

Files

\do_action( 'activitypub_handled_delete', $activity, $user_id, $success, $result )

← All Hooks

Users

Developers

Clone this wiki locally