Yoast\WP\SEO\Generators\Schema
Main_Image::is_needed() public Yoast 1.0
Determines whether or not a piece should be added to the graph.
{} Это метод класса: Main_Image{}
Хуков нет.
Возвращает
true/false.
Использование
$Main_Image = new Main_Image(); $Main_Image->is_needed();
Код Main_Image::is_needed() Main Image::is needed Yoast 15.6.2
public function is_needed() {
return $this->context->indexable->object_type === 'post';
}