-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_follow
github-actions[bot] edited this page Nov 14, 2025
·
4 revisions
Fires after a Follow activity has been handled.
/**
* 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 );-
array$activityThe ActivityPub activity data. -
Activitypub\int[]$user_idsThe local user IDs. -
bool$successTrue on success, false otherwise. -
WP_Post|\WP_Error$remote_actorThe remote actor/follower, or WP_Error if failed.
\do_action( 'activitypub_handled_follow', $activity, (array) $user_ids, $success, $remote_actor )Follow @[email protected] for updates and news.