-
Notifications
You must be signed in to change notification settings - Fork 86
activitypub_remote_recipient_fetch_cap_reached
github-actions[bot] edited this page Apr 28, 2026
·
1 revision
Fires when an incoming activity hits the remote recipient fetch cap.
Fires once per activity on the first recipient that exceeds the cap, not for each subsequent skipped recipient. Hook this to surface cap hits in your logging system of choice (Jetpack, Sentry, syslog, etc.).
/**
* Fires when an incoming activity hits the remote recipient fetch cap.
*
* Fires once per activity on the first recipient that exceeds the cap,
* not for each subsequent skipped recipient. Hook this to surface
* cap hits in your logging system of choice (Jetpack, Sentry, syslog, etc.).
*
* @param array $activity
* @param string $recipient
* @param int $cap
*/
function my_activitypub_remote_recipient_fetch_cap_reached_callback( array $activity, string $recipient, int $cap ) {
// Your code here.
}
add_action( 'activitypub_remote_recipient_fetch_cap_reached', 'my_activitypub_remote_recipient_fetch_cap_reached_callback', 10, 3 );-
array$activityThe incoming activity data. -
string$recipientThe recipient URI that was skipped. -
int$capThe configured cap.
\do_action( 'activitypub_remote_recipient_fetch_cap_reached', $activity, $recipient, $max_remote_fetches )Follow @activitypub.blog@activitypub.blog for updates and news.