SimplePie::set_image_handler()publicWP 1.0

Set the handler to enable the display of cached images.

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

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$SimplePie = new SimplePie();
$SimplePie->set_image_handler( $page, $qs );
$page(строка)
Web-accessible path to the handler_image.php file.
По умолчанию: false
$qs(строка)
The query string that the value should be passed to.
По умолчанию: 'i'

Код SimplePie::set_image_handler() WP 6.5.2

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