-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_handled_update
github-actions[bot] edited this page Oct 17, 2025
·
11 revisions
Fires after an ActivityPub Update activity has been handled.
/**
* Fires after an ActivityPub Update activity has been handled.
*
* @param array $activity
* @param int $user_id
* @param bool $success
* @param WP_Comment|\WP_Post|\WP_Error $result
* @return array The filtered value.
*/
function my_activitypub_handled_update_callback( array $activity, int $user_id, bool $success, WP_Comment|\WP_Post|\WP_Error $result ) {
// Your code here.
return $activity;
}
add_filter( 'activitypub_handled_update', 'my_activitypub_handled_update_callback', 10, 4 );-
array$activityThe ActivityPub activity data. -
int$user_idThe local user ID. -
bool$successTrue on success, false otherwise. -
WP_Comment|\WP_Post|\WP_Error$resultThe updated post, comment, or error.
\do_action( 'activitypub_handled_update', $activity, $user_id, $success, $result )\do_action( 'activitypub_handled_update', $activity, $user_id, $state, $actor )Follow @[email protected] for updates and news.