-
Notifications
You must be signed in to change notification settings - Fork 84
activitypub_handled_announce
github-actions[bot] edited this page Sep 24, 2025
·
9 revisions
Fires after an ActivityPub Announce activity has been handled.
/**
* Fires after an ActivityPub Announce activity has been handled.
*
* @param array $activity
* @param int $user_id
* @param bool $success
* @param array|string|int|\WP_Error|false $result
* @return array The filtered value.
*/
function my_activitypub_handled_announce_callback( array $activity, int $user_id, bool $success, array|string|int|\WP_Error|false $result ) {
// Your code here.
return $activity;
}
add_filter( 'activitypub_handled_announce', 'my_activitypub_handled_announce_callback', 10, 4 );-
array$activityThe ActivityPub activity data. -
int$user_idThe local user ID. -
bool$successTrue on success, false otherwise. -
array|string|int|\WP_Error|false$resultThe WP_Comment object of the created announce/repost comment, or null if creation failed.
\do_action( 'activitypub_handled_announce', $activity, $user_id, $success, $result )Follow @[email protected] for updates and news.