Core Function
View Source on Trac ↗ untrailingslashit()
untrailingslashit( mixed $value ) Removes trailing forward slashes and backslashes if they exist.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $value string | Value from which trailing slashes will be removed. Required |
Return Value
(string)
String without the trailing slashes.
Function Information
Since Version
2.2.0
Source File
wp-includes/formatting.php
Advertisement