Yoast\WP\SEO\Conditionals

Settings_Conditional::is_met()publicYoast 1.0

Returns whether or not this conditional is met.

{} Это метод класса: Settings_Conditional{}

Хуков нет.

Возвращает

true|false. Whether or not the conditional is met.

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

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

Код Settings_Conditional::is_met() Yoast 19.7.1

public function is_met() {
	if ( ! $this->new_settings_ui_conditional->is_met() ) {
		return false;
	}
	if ( ! $this->premium_active_conditional->is_met() ) {
		return false;
	}
	if ( ! $this->user_can_manage_wpseo_options_conditional->is_met() ) {
		return false;
	}

	return true;
}