- 
        Couldn't load subscription status. 
- Fork 84
activitypub_dispatcher_retry_error_codes
        github-actions[bot] edited this page Oct 28, 2025 
        ·
        2 revisions
      
    Filters the error codes that qualify for a retry.
/**
 * Filters the error codes that qualify for a retry.
 *
 * @param Activitypub\int[] $retry_error_codes 
 * @return Activitypub\int[] The filtered value.
 */
function my_activitypub_dispatcher_retry_error_codes_callback( Activitypub\int[] $retry_error_codes ) {
    // Your code here.
    return $retry_error_codes;
}
add_filter( 'activitypub_dispatcher_retry_error_codes', 'my_activitypub_dispatcher_retry_error_codes_callback' );- 
Activitypub\int[]$retry_error_codesThe error codes. Default array( 408, 429, 500, 502, 503, 504 ).
apply_filters( 'activitypub_dispatcher_retry_error_codes', array( 408, 429, 500, 502, 503, 504 ) )Follow @[email protected] for updates and news.