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 |
|---|---|
| 117 | * @uses apply_filters() Calls 'comment_email' hook for the display of the comment author's email |
| 118 | * @global object $comment The current Comment row object |
| 119 | * |
| 120 | * @param string $linktext The text to display instead of the comment author's email address |
| 121 | * @param string $before The text or HTML to display before the email link. |
| 122 | * @param string $after The text or HTML to display after the email link. |
| 123 | */ |
| 124 | function get_comment_author_email_link($linktext='', $before='', $after='') { |
| 125 | global $comment; |
| 126 | $email = apply_filters('comment_email', $comment->comment_author_email); |
| 127 | if ((!empty($email)) && ($email != '@')) { |
| 128 | $display = ($linktext != '') ? $linktext : $email; |
| 129 | $return = $before; |
| 130 | $return .= "<a href='mailto:$email'>$display</a>"; |
| 131 | $return .= $after; |
| 132 | return $return; |
| 133 | } else { |
| 134 | return ''; |
| 135 | } |