-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_send_activity_to_followers
github-actions[bot] edited this page Oct 28, 2025
·
12 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_followersWhether to send the Activity to followers. -
Activitypub\Activity$activityThe ActivityPub Activity. -
int$actor_idThe actor ID. -
WP_Post$outbox_itemThe WordPress object.
apply_filters( 'activitypub_send_activity_to_followers', $send, $activity, $outbox_item->post_author, $outbox_item )Follow @[email protected] for updates and news.