WordPress\AiClientDependencies\Psr\Http\Message

UriInterface::withQuery │ public │ WP 1.0

Return an instance with the specified query string.

This method MUST retain the state of the current instance, and return an instance that contains the specified query string.

Users can provide both encoded and decoded query characters. Implementations ensure the correct encoding as outlined in getQuery().

An empty query string value is equivalent to removing the query string.

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

Хуков нет.

Возвращает

static. A new instance with the specified query string.

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

$UriInterface = new UriInterface();
$UriInterface->withQuery( $query ): UriInterface;
$query(строка) (обязательный)
The query string to use with the new instance.

Код UriInterface::withQuery() WP 7.1.4

public function withQuery(string $query): UriInterface;