Skip to content

activitypub_followers_pre_remove_follower

github-actions[bot] edited this page Aug 7, 2025 · 5 revisions

Fires before a Follower is removed.

Auto-generated Example

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
);

Parameters

  • WP_Post $post The remote Actor object.
  • int $user_id The ID of the WordPress User.
  • Activitypub\Activity\Actor $actor The remote Actor object.

Files

\do_action( 'activitypub_followers_pre_remove_follower', $post, $user_id, Actors::get_actor( $post ) )

← All Hooks

Users

Developers

Clone this wiki locally