Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: user_trailingslashit

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
55       * Filters the trailing-slashed string, depending on whether the site is set to use trailing slashes.
56       *
57       * @since 2.2.0
58       *
59       * @param string $string      URL with or without a trailing slash.
60       * @param string $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback',
61       *                            'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed',
62       *                            'category', 'page', 'year', 'month', 'day', 'post_type_archive'.
63       */
64      return apply_filters( 'user_trailingslashit', $string, $type_of_url );
65 }
67 /**
68  * Displays the permalink anchor for the current post.
69  *
70  * The permalink mode title will use the post title for the 'a' element 'id'
71  * attribute. The id mode uses 'post-' with the post ID for the 'id' attribute.
72  *
73  * @since 0.71