Yoast\WP\SEO\Conditionals

No_Tool_Selected_Conditional::is_met()publicYoast 1.0

Returns whether or not this conditional is met.

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

Хуков нет.

Возвращает

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

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

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

Код No_Tool_Selected_Conditional::is_met() Yoast 19.11

public function is_met() {
	// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- We just check whether a URL parameter does not exist.
	return ! isset( $_GET['tool'] );
}