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.


null. Nothing (null).


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


Since 1.0 Introduced.
Since 1.0 Beta 3

SimplePie::set_timeout() code WP 6.5.4

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