untrailingslashit


untrailingslashit ( $value )

Parameters:
  • (string) text Value from which trailing slashes will be removed.
Returns:
  • (string) String without the trailing slashes.
Defined at:

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.

Related Functions

trailingslashit, user_trailingslashit, translate, backslashit, get_links_list

Top Google Results

User discussions

wpseek mobile