Yoast\WP\SEO\Values
Images::has_images
Check whether we have images or not.
Метод класса: Images{}
Хуков нет.
Возвращает
bool. True if we have images, false if we don't.
Использование
$Images = new Images(); $Images->has_images();
Код Images::has_images() Images::has images Yoast 28.6
public function has_images() {
return ! empty( $this->images );
}