Yoast\WP\SEO\Generators\Schema

WebPage::add_breadcrumbs()privateYoast 1.0

Determine if we should add a breadcrumb attribute.

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

Хуков нет.

Возвращает

true|false.

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

// private - только в коде основоного (родительского) класса
$result = $this->add_breadcrumbs();

Код WebPage::add_breadcrumbs() Yoast 22.4

private function add_breadcrumbs() {
	if ( $this->context->indexable->object_type === 'system-page' && $this->context->indexable->object_sub_type === '404' ) {
		return false;
	}

	return true;
}