WpOrg\Requests

Iri::set_fragment()protectedWP 1.0

Set the ifragment.

Method of the class: Iri{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->set_fragment( $ifragment );
$ifragment(string) (required)
-

Iri::set_fragment() code WP 6.6.2

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;
}