Change the timeout for the license check request (default 5 seconds).
/** * Filter to change the timeout for this wp_remote_get() request. * * @since 1.8.5.1 * * @see pmpro_license_check_key * * @param int $timeout The number of seconds before the request times out * * @return int $timeout The number of seconds before the request times out. */ $timeout = apply_filters("pmpro_license_check_key_timeout", 5); |
Parameters
- $timeout
- int
Return Value
$timeout
Source
File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/license.php
View in Source Code