WordPress at a glance
function is not described

Requests_IRI::set_fragment() protected WP 1.0

Set the ifragment.

{} It's a method of the class: Requests_IRI{}

No Hooks.

Return

true/false.

Usage

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

Code of Requests_IRI::set_fragment() WP 5.5.2

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