W3cubDocs

/WordPress

Requests_IRI::set_fragment( string $ifragment )

Set the ifragment.

Parameters

$ifragment

(string) (Required)

Return

(bool)

Source

File: wp-includes/Requests/IRI.php

protected function set_fragment($ifragment) {
		if ($ifragment === null) {
			$this->ifragment = null;
		}
		else {
			$this->ifragment = $this->replace_invalid_with_pct_encoding($ifragment, '!$&\'()*+,;=:@/?');
			$this->scheme_normalization();
		}
		return true;
	}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_iri/set_fragment