Skip to main content

Filter: gk/foundation/licenses/api-request-timeout

Filters the timeout (in seconds) for Store API metadata requests (product and license data).

Defaults to roughly a third of PHP's max_execution_time (clamped to 5–15s), or 15s when there is no limit, so a slow or unreachable Store cannot exhaust the request budget. Raise it on slow connections. Package downloads use their own (longer) timeout, not this value.

Parameters

NameTypeDescription
$timeoutintRequest timeout in seconds.
$urlstringThe Store API URL being requested.

Since

  • 1.22.0

Source

Defined in Licenses/Helpers.php at line 47