-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_remote_get_timeout
github-actions[bot] edited this page Feb 4, 2026
·
12 revisions
Filters the timeout duration for remote GET requests in ActivityPub.
/**
* Filters the timeout duration for remote GET requests in ActivityPub.
*
* @param int $timeout
* @return int The filtered value.
*/
function my_activitypub_remote_get_timeout_callback( int $timeout ) {
// Your code here.
return $timeout;
}
add_filter( 'activitypub_remote_get_timeout', 'my_activitypub_remote_get_timeout_callback' );-
int$timeoutThe timeout value in seconds. Default 10 seconds.
\apply_filters( 'activitypub_remote_get_timeout', 10 )Follow @activitypub.blog@activitypub.blog for updates and news.