Requests_IRI::__construct() WordPress Method

The Requests_IRI::__construct() method is used to construct an IRI for use with Requests. An IRI (Internationalized Resource Identifier) is a global identifier for resources that can be used regardless of language or writing system. This method takes a single parameter, which is the IRI string.

Requests_IRI::__construct( string|null $iri = null ) #

Create a new IRI object, from a specified string


Parameters

$iri

(string|null)(Optional)

Default value: null


Top ↑

Source

File: wp-includes/Requests/IRI.php

	public function __construct($iri = null) {
		$this->set_iri($iri);
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.