A WordPress-centric search engine for devs and theme authors



user_trailingslashit ›

Since2.2.0
Deprecatedn/a
apply_filters( 'user_trailingslashit', $string, $type_of_url )
Parameters: (2)
  • (string) $string 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
Defined at:
Codex:

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





Source

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