Skip to content

activitypub_handled_announce

github-actions[bot] edited this page Jul 29, 2025 · 9 revisions

Fires after an Announce has been saved.

Auto-generated Example

add_action(
   'activitypub_handled_announce',
    'my_activitypub_handled_announce_callback',
    10,
    4
);

function my_activitypub_handled_announce_callback(
    array $activity,
    int $user_id,
    Activitypub\mixed $state,
    Activitypub\mixed $reaction
) {
    // Your code here.
}

Parameters

  • array $activity The activity-object.
  • int $user_id The id of the local blog-user.
  • Activitypub\mixed $state The state of the reaction.
  • Activitypub\mixed $reaction The reaction.

Files

do_action( 'activitypub_handled_announce', $activity, $user_id, $state, $reaction )

← All Hooks

Users

Developers

Clone this wiki locally