Yoast\WP\SEO\Generators\Schema
Organization::is_needed()
Determines whether an Organization graph piece should be added.
Метод класса: Organization{}
Хуков нет.
Возвращает
true|false
.
Использование
$Organization = new Organization(); $Organization->is_needed();
Код Organization::is_needed() Organization::is needed Yoast 24.3
public function is_needed() { return $this->context->site_represents === 'company'; }