wordpress / latest / classes / requests_iri / set_fragment.html

Requests_IRI::set_fragment( string $ifragment ): bool

Set the ifragment.

Parameters

$ifragment string Required

Return

bool

Source

File: wp-includes/Requests/IRI.php. View all references

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

Used By

Used By Description

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