WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Requests_SSL::match_domain() public WP 1.0

Match a hostname against a dNSName reference

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

Хуков нет.

Возвращает

true/false. Does the domain match?

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

$result = Requests_SSL::match_domain( $host, $reference );
$host(строка) (обязательный)
Requested host
$reference(строка) (обязательный)
dNSName to match against

Код Requests_SSL::match_domain() WP 5.5.1

wp-includes/Requests/SSL.php
<?php
public static function match_domain($host, $reference) {
	// Check if the reference is blocklisted first
	if (self::verify_reference_name($reference) !== true) {
		return false;
	}

	// Check for a direct match
	if ($host === $reference) {
		return true;
	}

	// Calculate the valid wildcard match if the host is not an IP address
	// Also validates that the host has 3 parts or more, as per Firefox's
	// ruleset.
	if (ip2long($host) === false) {
		$parts = explode('.', $host);
		$parts[0] = '*';
		$wildcard = implode('.', $parts);
		if ($wildcard === $reference) {
			return true;
		}
	}

	return false;
}