untrailingslashit
untrailingslashit ( $value )
Parameters:- (string) value Value from which trailing slashes will be removed.
Returns:- (string) String without the trailing slashes.
Defined at: - Introduced in WordPress: 2.2.0
- Deprecated in WordPress: —
Description
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.