Yoast\WP\SEO\Conditionals

Import_Tool_Selected_Conditional::is_met()publicYoast 1.0

Returns whether or not this conditional is met.

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

Хуков нет.

Возвращает

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

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

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

Код Import_Tool_Selected_Conditional::is_met() Yoast 19.2

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