WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
56 | * Filters the trailing-slashed string, depending on whether the site is set to use trailing slashes. |
57 | * |
58 | * @since 2.2.0 |
59 | * |
60 | * @param string $string URL with or without a trailing slash. |
61 | * @param string $type_of_url The type of URL being considered. Accepts 'single', 'single_trackback', |
62 | * 'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed', |
63 | * 'category', 'page', 'year', 'month', 'day', 'post_type_archive'. |
64 | */ |
65 | return apply_filters( 'user_trailingslashit', $string, $type_of_url ); |
66 | } |
67 |
|
68 | /** |
69 | * Displays the permalink anchor for the current post. |
70 | * |
71 | * The permalink mode title will use the post title for the 'a' element 'id' |
72 | * attribute. The id mode uses 'post-' with the post ID for the 'id' attribute. |
73 | * |
74 | * @since 0.71 |