-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_send_activity_to_followers
github-actions[bot] edited this page Aug 7, 2025
·
5 revisions
Filters whether to send an Activity to followers.
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
);
-
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.
apply_filters( 'activitypub_send_activity_to_followers', $send, $activity, $outbox_item->post_author, $outbox_item )
Follow @[email protected] for updates and news.