You appear to be a bot. Output may be restricted
Description
Determine if we should add a breadcrumb attribute.
Usage
$bool = Breadcrumb::is_needed();
Parameters
Returns
bool
Source
File name: wordpress-seo/src/generators/schema/breadcrumb.php
Lines:
1 to 15 of 15
public function is_needed() { if ( $this->context->indexable->object_type === 'system-page' && $this->context->indexable->object_sub_type === '404' ) { return false; } if ( $this->context->indexable->object_type === 'home-page' || $this->helpers->current_page->is_home_static_page() ) { return false; } if ( $this->context->breadcrumbs_enabled ) { return true; } return false; }