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 |
|---|---|
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Display the permalink for the current post. |
| 11 | * |
| 12 | * @since 1.2.0 |
| 13 | * @uses apply_filters() Calls 'the_permalink' filter on the permalink string. |
| 14 | */ |
| 15 | function the_permalink() { |
| 16 | echo apply_filters('the_permalink', get_permalink()); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Retrieve trailing slash string, if blog set for adding trailing slashes. |
| 21 | * |
| 22 | * Conditionally adds a trailing slash if the permalink structure has a trailing |
| 23 | * slash, strips the trailing slash if not. The string is passed through the |
| 24 | * 'user_trailingslashit' filter. Will remove trailing slash from string, if |
| 25 | * blog is not set to have them. |