SimplePie::set_cache_name_function()publicWP 1.0

Set callback function to create cache filename with

Method of the class: SimplePie{}

No Hooks.

Return

null. Nothing (null).

Usage

$SimplePie = new SimplePie();
$SimplePie->set_cache_name_function( $function );
$function(mixed)
Callback function
Default: 'md5'

SimplePie::set_cache_name_function() code WP 6.5.4

public function set_cache_name_function($function = 'md5')
{
	if (is_callable($function))
	{
		$this->cache_name_function = $function;
	}
}