SimplePie::set_timeout()publicWP 1.0

Set the default timeout for fetching remote feeds

This allows you to change the maximum time the feed's server to respond and send the feed back.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$SimplePie = new SimplePie();
$SimplePie->set_timeout( $timeout );
$timeout(int)
The maximum number of seconds to spend waiting to retrieve a feed.
По умолчанию: 10

Список изменений

С версии 1.0 Введена.
С версии 1.0 Beta 3

Код SimplePie::set_timeout() WP 6.5.2

public function set_timeout($timeout = 10)
{
	$this->timeout = (int) $timeout;
}