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.

Method of the class: SimplePie{}

No Hooks.

Return

null. Nothing (null).

Usage

$SimplePie = new SimplePie();
$SimplePie->set_timeout( $timeout );
$timeout(int)
The maximum number of seconds to spend waiting to retrieve a feed.
Default: 10

Changelog

Since 1.0 Introduced.
Since 1.0 Beta 3

SimplePie::set_timeout() code WP 6.5.2

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