SimplePie::get_favicon()publicWP 1.0

Deprecated. It is no longer supported and can be removed in future releases. Use your own favicon handling instead.

Get the favicon for the current feed

Method of the class: SimplePie{}

No Hooks.

Return

null. Nothing (null).

Usage

$SimplePie = new SimplePie();
$SimplePie->get_favicon();

Changelog

Deprecated Use your own favicon handling instead

SimplePie::get_favicon() code WP 6.5.2

public function get_favicon()
{
	$level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
	trigger_error('Favicon handling has been removed, please use your own handling', $level);

	if (($url = $this->get_link()) !== null)
	{
		return 'https://www.google.com/s2/favicons?domain=' . urlencode($url);
	}

	return false;
}