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 |
---|---|
265 | $the_link = '#'; |
266 | if ( !empty($bookmark->link_url) ) |
267 | $the_link = clean_url($bookmark->link_url); |
268 |
|
269 | $rel = $bookmark->link_rel; |
270 | if ( '' != $rel ) |
271 | $rel = ' rel="' . $rel . '"'; |
272 |
|
273 | $desc = attribute_escape(apply_filters('link_description', $bookmark->link_description)); |
274 | $name = attribute_escape(apply_filters('link_title', $bookmark->link_name)); |
275 | $title = $desc; |
276 |
|
277 | if ( $show_updated ) |
278 | if ( '00' != substr($bookmark->link_updated_f, 0, 2) ) { |
279 | $title .= ' '; |
280 | $title .= sprintf(__('Last updated: %s'), date(get_option('links_updated_date_format'), $bookmark->link_updated_f + (get_option('gmt_offset') * 3600))); |
281 | $title .= ')'; |
282 | } |
283 |
|