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 |
|---|---|
| 80 | * @uses apply_filters() Calls 'comment_email' hook for the display of the comment author's email |
| 81 | * @global object $comment The current Comment row object |
| 82 | * |
| 83 | * @param string $linktext The text to display instead of the comment author's email address |
| 84 | * @param string $before The text or HTML to display before the email link. |
| 85 | * @param string $after The text or HTML to display after the email link. |
| 86 | */ |
| 87 | function comment_author_email_link($linktext='', $before='', $after='') { |
| 88 | global $comment; |
| 89 | $email = apply_filters('comment_email', $comment->comment_author_email); |
| 90 | if ((!empty($email)) && ($email != '@')) { |
| 91 | $display = ($linktext != '') ? $linktext : $email; |
| 92 | echo $before; |
| 93 | echo "<a href='mailto:$email'>$display</a>"; |
| 94 | echo $after; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /** |