WordPress at a glance
function is not described

SimplePie::set_autodiscovery_cache_duration() public WP 1.0

Set the length of time (in seconds) that the autodiscovered feed URL will be cached

{} It's a method of the class: SimplePie{}

No Hooks.


null. Nothing.


$SimplePie = new SimplePie();
$SimplePie->set_autodiscovery_cache_duration( $seconds );
The autodiscovered feed URL cache duration.

Code of SimplePie::set_autodiscovery_cache_duration() WP 5.7.2

public function set_autodiscovery_cache_duration($seconds = 604800)
	$this->autodiscovery_cache_duration = (int) $seconds;