-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_followers_pre_remove_follower
github-actions[bot] edited this page Nov 14, 2025
·
13 revisions
Fires before a Follower is removed.
/**
* Fires before a Follower is removed.
*
* @param WP_Post $post
* @param int $user_id
* @param Activitypub\Activity\Actor $actor
*/
function my_activitypub_followers_pre_remove_follower_callback( WP_Post $post, int $user_id, Activitypub\Activity\Actor $actor ) {
// Your code here.
}
add_action( 'activitypub_followers_pre_remove_follower', 'my_activitypub_followers_pre_remove_follower_callback', 10, 3 );-
WP_Post$postThe remote Actor object. -
int$user_idThe ID of the WordPress User. -
Activitypub\Activity\Actor$actorThe remote Actor object.
\do_action( 'activitypub_followers_pre_remove_follower', $post, $user_id, Remote_Actors::get_actor( $post ) )Follow @[email protected] for updates and news.