WordPress at Your Fingertips
function is not described

SimplePie_Sanitize::pass_file_data() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Sanitize = new SimplePie_Sanitize();
$SimplePie_Sanitize->pass_file_data( $file_class, $timeout, $useragent, $force_fsockopen );
$file_class **
-
Default: 'SimplePie_File'
$timeout **
-
Default: 10
$useragent **
-
Default: ''
$force_fsockopen **
-
Default: false

Code of SimplePie_Sanitize::pass_file_data() WP 5.8.2

public function pass_file_data($file_class = 'SimplePie_File', $timeout = 10, $useragent = '', $force_fsockopen = false)
{
	if ($timeout)
	{
		$this->timeout = (string) $timeout;
	}

	if ($useragent)
	{
		$this->useragent = (string) $useragent;
	}

	if ($force_fsockopen)
	{
		$this->force_fsockopen = (string) $force_fsockopen;
	}
}