Skip to content

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.).

Auto-generated Example

/**
 * 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 );

Parameters

  • array $activity The incoming activity data.
  • string $recipient The recipient URI that was skipped.
  • int $cap The configured cap.

Files

\do_action( 'activitypub_remote_recipient_fetch_cap_reached', $activity, $recipient, $max_remote_fetches )

← All Hooks

Users

Developers

Clone this wiki locally