-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_handled_accept
github-actions[bot] edited this page Sep 24, 2025
·
1 revision
Fires after an ActivityPub Accept activity has been handled.
/**
* 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 );
-
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.
\do_action( 'activitypub_handled_accept', $accept, $user_id, $success, $result )
Follow @[email protected] for updates and news.