wpseek.com
WordPress开发者和主题制作者的搜索引擎



user_trailingslashit › WordPress过滤钩子

Since2.2.0
已弃用n/a
apply_filters( 'user_trailingslashit', $url, $type_of_url )
参数: (2)
  • (string) $url URL with or without a trailing slash.
    Required: Yes
  • (string) $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback', 'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed', 'category', 'page', 'year', 'month', 'day', 'post_type_archive'.
    Required: Yes
定义在:
文档:

Filters the trailing-slashed string, depending on whether the site is set to use trailing slashes.





源码

return apply_filters( 'user_trailingslashit', $url, $type_of_url );