Yoast\WP\SEO\Conditionals

AI_Editor_Conditional::is_met │ public │ Yoast 1.0

Returns true when the AI editor integration should be active.

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

Хуков нет.

Возвращает

bool. true when the AI editor integration should be active.

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

$AI_Editor_Conditional = new AI_Editor_Conditional();
$AI_Editor_Conditional->is_met();

Код AI_Editor_Conditional::is_met() Yoast 28.8

public function is_met() {
	if ( $this->is_attachment() ) {
		return false;
	}

	if ( $this->is_ai_generator_premium() ) {
		return false;
	}

	return $this->post_conditional->is_met() || $this->is_term() || $this->is_elementor_editor();
}