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.

Method of the class: SimplePie{}

No Hooks.

Return

null. Nothing (null).

Usage

$SimplePie = new SimplePie();
$SimplePie->force_feed( $enable );
$enable(true|false)
Force the given data/URL to be treated as a feed
Default: false

Changelog

Since 1.1 Introduced.

SimplePie::force_feed() code WP 6.5.2

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