-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_send_activity_to_followers
github-actions[bot] edited this page Aug 18, 2025
·
8 revisions
Filters whether to send an Activity to followers.
/**
* Filters whether to send an Activity to followers.
*
* @param bool $send_activity_to_followers
* @param Activitypub\Activity $activity
* @param int $actor_id
* @param WP_Post $outbox_item
* @return bool The filtered value.
*/
function my_activitypub_send_activity_to_followers_callback( bool $send_activity_to_followers, Activitypub\Activity $activity, int $actor_id, WP_Post $outbox_item ) {
// Your code here.
return $send_activity_to_followers;
}
add_filter( 'activitypub_send_activity_to_followers', 'my_activitypub_send_activity_to_followers_callback', 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.