Requests_IRI::set_fragment() WordPress Method
The set_fragment() method is used to set the fragment component of an IRI. The fragment is the part of the IRI that comes after the "#" character.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub