WPSEO_MyYoast_Proxy::is_proxy_page()protectedYoast 1.0

Checks if the current page is the MyYoast proxy page.

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

Хуков нет.

Возвращает

true|false. True when the page request parameter equals the proxy page.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_proxy_page();

Код WPSEO_MyYoast_Proxy::is_proxy_page() Yoast 22.4

protected function is_proxy_page() {
	// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
	$page = isset( $_GET['page'] ) && is_string( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : '';
	return $page === self::PAGE_IDENTIFIER;
}