SimplePie::get_favicon()
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
. Ничего (null).
Usage
$SimplePie = new SimplePie(); $SimplePie->get_favicon();
Changelog
Deprecated | Use your own favicon handling instead |
SimplePie::get_favicon() SimplePie::get favicon code WP 6.4.1
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; }