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 |
|---|---|
| 188 | } else { |
| 189 | $k = count($blah); |
| 190 | $use_dotdotdot = 0; |
| 191 | } |
| 192 | $excerpt = ''; |
| 193 | for ($i=0; $i<$k; $i++) { |
| 194 | $excerpt .= $blah[$i] . ' '; |
| 195 | } |
| 196 | $excerpt .= ($use_dotdotdot) ? '...' : ''; |
| 197 | echo apply_filters('comment_excerpt', $excerpt); |
| 198 | } |
| 199 | |
| 200 | function comment_date($d='') { |
| 201 | global $comment; |
| 202 | if ('' == $d) { |
| 203 | echo mysql2date(get_settings('date_format'), $comment->comment_date); |
| 204 | } else { |
| 205 | echo mysql2date($d, $comment->comment_date); |
| 206 | } |