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 |
|---|---|
| 228 | |
| 229 | } |
| 230 | if ( $preview ) // preview fix for javascript bug with foreign languages |
| 231 | $output = preg_replace_callback('/\%u([0-9A-F]{4})/', create_function('$match', 'return "&#" . base_convert($match[1], 16, 10) . ";";'), $output); |
| 232 | |
| 233 | return $output; |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Display the post excerpt. |
| 238 | * |
| 239 | * @since 0.71 |
| 240 | * @uses apply_filters() Calls 'the_excerpt' hook on post excerpt. |
| 241 | */ |
| 242 | function the_excerpt() { |
| 243 | echo apply_filters('the_excerpt', get_the_excerpt()); |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Retrieve the post excerpt. |
| 248 | * |
| 249 | * @since 0.71 |
| 250 | * |
| 251 | * @param mixed $deprecated Not used. |
| 252 | * @return string |
| 253 | */ |
| 254 | function get_the_excerpt($deprecated = '') { |
| 255 | global $post; |
| 256 | $output = ''; |
| 257 | $output = $post->post_excerpt; |
| 258 | if ( post_password_required($post) ) { |