- // Note that $type_of_url can be one of following:
- // single, single_trackback, single_feed, single_paged, feed, category, page, year, month, day, paged, post_type_archive
- $string = apply_filters('user_trailingslashit', $string, $type_of_url);
+ /**
+ * Filter the trailing slashed string, depending on whether the site is set
+ * to use training slashes.
+ *
+ * @since 2.2.0
+ *
+ * @param string $string URL with or without a trailing slash.
+ * @param string $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback',
+ * 'single_feed', 'single_paged', 'feed', 'category', 'page', 'year',
+ * 'month', 'day', 'paged', 'post_type_archive'.
+ */
+ $string = apply_filters( 'user_trailingslashit', $string, $type_of_url );