Skip to content

activitypub_send_activity_to_followers

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

Filters whether to send an Activity to followers.

Auto-generated Example

add_filter(
   'activitypub_send_activity_to_followers',
    function(
        bool $send_activity_to_followers,
        Activitypub\Activity $activity,
        int $actor_id,
        WP_Post $outbox_item
    ) {
        // Your code here.
        return $send_activity_to_followers;
    },
    10,
    4
);

Parameters

  • bool $send_activity_to_followers Whether to send the Activity to followers.
  • Activitypub\Activity $activity The ActivityPub Activity.
  • int $actor_id The actor ID.
  • WP_Post $outbox_item The WordPress object.

Files

apply_filters( 'activitypub_send_activity_to_followers', $send, $activity, $outbox_item->post_author, $outbox_item )

← All Hooks

Users

Developers

Clone this wiki locally