Yoast\WP\SEO\Generators\Schema
WebPage::add_breadcrumbs()
Determine if we should add a breadcrumb attribute.
Метод класса: WebPage{}
Хуков нет.
Возвращает
true|false
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->add_breadcrumbs();
Код WebPage::add_breadcrumbs() WebPage::add breadcrumbs Yoast 24.3
private function add_breadcrumbs() { if ( $this->context->indexable->object_type === 'system-page' && $this->context->indexable->object_sub_type === '404' ) { return false; } return true; }