wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



user_trailingslashit › Filtr WordPress Hooks

Od2.2.0
Przestarzałyn/a
apply_filters( 'user_trailingslashit', $url, $type_of_url )
Parametry: (2)
  • (string) $url URL with or without a trailing slash.
    Wymagane: Tak
  • (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'.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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