Yoast\WP\SEO\AI_HTTP_Request\Infrastructure

API_Client::get_request_timeoutpublicYoast 1.0

Gets the timeout of the requests in seconds.

Метод класса: API_Client{}

Хуки из метода

Возвращает

int. The timeout of the suggestion requests in seconds.

Использование

$API_Client = new API_Client();
$API_Client->get_request_timeout(): int;

Код API_Client::get_request_timeout() Yoast 27.8

public function get_request_timeout(): int {
	/**
	 * Filter: 'Yoast\WP\SEO\ai_suggestions_timeout' - Replaces the default timeout with a custom one, for testing purposes.
	 *
	 * @since 22.7
	 * @internal
	 *
	 * @param int $timeout The default timeout in seconds.
	 */
	return (int) \apply_filters( 'Yoast\WP\SEO\ai_suggestions_timeout', 60 );
}