Core Function
View Source on Trac ↗ strip_fragment_from_url()
strip_fragment_from_url( mixed $url ) Strips the #fragment from a URL, if one is present.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $url string | The URL to strip. Required |
Return Value
(string)
The altered URL.
Function Information
Since Version
4.4.0
Source File
wp-includes/canonical.php
Advertisement