SimplePie::get_image_height() public WP 1.0
Get the feed logo's height
RSS 2.0 feeds are allowed to have a "feed logo" height.
Uses <image><height> or defaults to 31.0 if no height is specified and the feed is an RSS 2.0 feed.
{} Это метод класса: SimplePie{}
Хуков нет.
Возвращает
Число/float/null.
Использование
$SimplePie = new SimplePie(); $SimplePie->get_image_height();
Код SimplePie::get_image_height() SimplePie::get image height WP 5.6
public function get_image_height()
{
if ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'height'))
{
return round($return[0]['data']);
}
elseif ($this->get_type() & SIMPLEPIE_TYPE_RSS_SYNDICATION && $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'url'))
{
return 31.0;
}
return null;
}