SimplePie::set_image_handler()publicWP 1.0

Set the handler to enable the display of cached images.

Метод класса: SimplePie{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie = new SimplePie();
$SimplePie->set_image_handler( $page, $qs );
$page(string)
Web-accessible path to the handler_image.php file.
Default: false
$qs(string)
The query string that the value should be passed to.
Default: 'i'

Code of SimplePie::set_image_handler() WP 6.1.1

public function set_image_handler($page = false, $qs = 'i')
{
	if ($page !== false)
	{
		$this->sanitize->set_image_handler($page . '?' . $qs . '=');
	}
	else
	{
		$this->image_handler = '';
	}
}