title: "WP_CLI\Utils\trailingslashit()" post_status: publish comment_status: open taxonomy: category: - wp-cli-handbook post_tag: - Internal Api - Repos - Data


WP_CLI\Utils\trailingslashit()

添加尾部斜杠。


用法

WP_CLI\Utils\trailingslashit( $string )
$string (string) 需要添加尾部斜杠的字符串。
@return (string) 添加了尾部斜杠的字符串。

内部 API 文档随每次发布从 WP-CLI 代码库生成。如需改进,请提交拉取请求。


相关函数