Skip to content

activitypub_handled_accept

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

Fires after an ActivityPub Accept activity has been handled.

Auto-generated Example

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

Parameters

  • array $accept The ActivityPub activity data.
  • int $user_id The local user ID.
  • bool $success True on success, false otherwise.
  • WP_Post|\WP_Error $result The remote actor post or error.

Files

\do_action( 'activitypub_handled_accept', $accept, $user_id, $success, $result )

← All Hooks

Users

Developers

Clone this wiki locally