untrailingslashit ( $string )
- (string) $string What to remove the trailing slashes from.
- (string) String without the trailing slashes.
- Introduced in WordPress: 2.2.0
- Deprecated in WordPress: —
Removes trailing forward slashes and backslashes if they exist.
The primary use of this is for paths and thus should be used for paths. It is
not restricted to paths and offers no specific path support.