-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_followers_pre_remove_follower
github-actions[bot] edited this page Aug 7, 2025
·
5 revisions
Fires before a Follower is removed.
add_filter(
'activitypub_followers_pre_remove_follower',
function(
WP_Post $post,
int $user_id,
Activitypub\Activity\Actor $actor
) {
// Your code here.
return $post;
},
10,
3
);
-
WP_Post
$post
The remote Actor object. -
int
$user_id
The ID of the WordPress User. -
Activitypub\Activity\Actor
$actor
The remote Actor object.
\do_action( 'activitypub_followers_pre_remove_follower', $post, $user_id, Actors::get_actor( $post ) )
Follow @[email protected] for updates and news.