-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_announce
github-actions[bot] edited this page Aug 1, 2025
·
13 revisions
Fires after an Announce has been saved.
/**
* Fires after an Announce has been saved.
*
* @param array $activity
* @param int $user_id
* @param Activitypub\mixed $state
* @param Activitypub\mixed $reaction
*/
function my_activitypub_handled_announce_callback( array $activity, int $user_id, Activitypub\mixed $state, Activitypub\mixed $reaction ) {
// Your code here.
}
add_action( 'activitypub_handled_announce', 'my_activitypub_handled_announce_callback', 10, 4 );-
array$activityThe activity-object. -
int$user_idThe id of the local blog-user. -
Activitypub\mixed$stateThe state of the reaction. -
Activitypub\mixed$reactionThe reaction.
do_action( 'activitypub_handled_announce', $activity, $user_id, $state, $reaction )Follow @[email protected] for updates and news.