apply_filters ( 'jetpack_protect_connect_timeout', int $timeout )

Filter controls maximum timeout in waiting for reponse from Protect servers.

Source file: modules/protect.php

View in GitHub

Parameters

$timeout

(int) Max time (in seconds) to wait for a response.


Changelog

Since: Jetpack 4.0.4


Notes

You can use this filter to control the maximum timeout in waiting for a response from Protect servers. Here is how you could use it:

function jeherve_custom_protect_timeout() {
    return 180;
}
add_filter( 'jetpack_protect_connect_timeout', 'jeherve_custom_protect_timeout' );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s