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 24.0

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

	return true;
}