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

Requests_IRI::is_valid() public WP 1.0

Check if the object represents a valid IRI. This needs to be done on each call as some things change depending on another part of the IRI.

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

Хуков нет.

Возвращает

true/false.

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

$Requests_IRI = new Requests_IRI();
$Requests_IRI->is_valid();

Код Requests_IRI::is_valid() WP 5.5.1

wp-includes/Requests/IRI.php
<?php
public function is_valid() {
	$isauthority = $this->iuserinfo !== null || $this->ihost !== null || $this->port !== null;
	if ($this->ipath !== '' &&
		(
			$isauthority && $this->ipath[0] !== '/' ||
			(
				$this->scheme === null &&
				!$isauthority &&
				strpos($this->ipath, ':') !== false &&
				(strpos($this->ipath, '/') === false ? true : strpos($this->ipath, ':') < strpos($this->ipath, '/'))
			)
		)
	) {
		return false;
	}

	return true;
}