Yoast\WP\SEO\Context
Meta_Tags_Context::generate_has_image
Determines whether the current indexable has an image.
Метод класса: Meta_Tags_Context{}
Хуков нет.
Возвращает
true|false. Whether the current indexable has an image.
Использование
$Meta_Tags_Context = new Meta_Tags_Context(); $Meta_Tags_Context->generate_has_image();
Код Meta_Tags_Context::generate_has_image() Meta Tags Context::generate has image Yoast 26.5
public function generate_has_image() {
return $this->main_image_url !== null;
}