Yoast\WP\SEO\Conditionals

AI_Editor_Conditional::is_metpublicYoast 1.0

Returns true when the AI editor integration should be active.

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

Хуков нет.

Возвращает

true|false. 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 27.7

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();
}