SimplePie::force_feed()publicWP 1.1

Force the given data/URL to be treated as a feed

This tells SimplePie to ignore the content-type provided by the server. Be careful when using this option, as it will also disable autodiscovery.

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

Хуков нет.

Возвращает

null. Ничего.

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

$SimplePie = new SimplePie();
$SimplePie->force_feed( $enable );
$enable(true|false)
Force the given data/URL to be treated as a feed
По умолчанию: false

Список изменений

С версии 1.1 Введена.

Код SimplePie::force_feed() WP 6.1.1

public function force_feed($enable = false)
{
	$this->force_feed = (bool) $enable;
}