Yoast\WP\SEO\Generators\Schema

WebPage::is_needed()publicYoast 1.0

Determines whether or not a piece should be added to the graph.

{} Это метод класса: WebPage{}

Хуков нет.

Возвращает

true|false.

Использование

$WebPage = new WebPage();
$WebPage->is_needed();

Код WebPage::is_needed() Yoast 19.7.1

public function is_needed() {
	return ! ( $this->context->indexable->object_type === 'system-page' && $this->context->indexable->object_sub_type === '404' );
}