Skip to content

activitypub_handled_follow

github-actions[bot] edited this page Nov 14, 2025 · 4 revisions

Fires after a Follow activity has been handled.

Auto-generated Example

/**
 * Fires after a Follow activity has been handled.
 *
 * @param array             $activity 
 * @param Activitypub\int[] $user_ids 
 * @param bool              $success 
 * @param WP_Post|\WP_Error $remote_actor 
 */
function my_activitypub_handled_follow_callback( array $activity, Activitypub\int[] $user_ids, bool $success, WP_Post|\WP_Error $remote_actor ) {
    // Your code here.
}
add_action( 'activitypub_handled_follow', 'my_activitypub_handled_follow_callback', 10, 4 );

Parameters

  • array $activity The ActivityPub activity data.
  • Activitypub\int[] $user_ids The local user IDs.
  • bool $success True on success, false otherwise.
  • WP_Post|\WP_Error $remote_actor The remote actor/follower, or WP_Error if failed.

Files

\do_action( 'activitypub_handled_follow', $activity, (array) $user_ids, $success, $remote_actor )

← All Hooks

Users

Developers

Clone this wiki locally