Used By
Used By | Description |
---|---|
wp-includes/Requests/IRI.php: Requests_IRI::set_iri() | Set the entire IRI. Returns true on success, false on failure (if there are any invalid characters). |
Set the scheme. Returns true on success, false on failure (if there are any invalid characters).
(string) (Required)
(bool)
File: wp-includes/Requests/IRI.php
protected function set_scheme($scheme) { if ($scheme === null) { $this->scheme = null; } elseif (!preg_match('/^[A-Za-z][0-9A-Za-z+\-.]*$/', $scheme)) { $this->scheme = null; return false; } else { $this->scheme = strtolower($scheme); } return true; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_iri/set_scheme